简体   繁体   中英

SSAS cube browsing gives different results from database query

I'm executing the following query in my database engine containing my dimension tables and fact table, I'm grouping by dates the number of accesses of one ID

SELECT d.Date bp, count(NumberOfAccess)
from dbo.Fact fb inner join DimDates d on fb.Dates=d.Dates
where WebService='wsNAPSBan' and ID='200'
group by d.Date
order by bp desc

and it gives me the following results:

However when I browse the cube it gives me different results:

Any idea what the problem might be?

我发现问题出在萨斯,我用sum代替了count

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM