Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi All,
We are having issues with Time calculations when connecting Power BI to SSAS Multidimensional Cube in Direct Query mode.
To reproduce issue we created it on standalone machine with SQL Server 2017 Developer, latest Power BI desktop and AdventureWorks SSAS projects as example, so anyone can reproduce it.
We created simple calculated measure with pretty generic MDX to get Year Ago values based on Date Calendar hierarchy:
Internet Sales Amount YAGO =Aggregate(ParallelPeriod([Date].[Calendar].[Calendar Year] , 1,[Date].[Calendar].CurrentMember),[Internet Sales Amount]).
We then created a simple Power BI report with Matrix table:
You can see on screen below that sub-totals for any attribute that is before Month is not showing values:
Now the same configuration in Excel works perfectly.
We know that Power BI generates DAX per Total presented on screen.
We captured that DAX generated via Power BI per level for subtotals and for some reason it is returning NULLs for those sub-totals.
We observed this behaviour with all variations of hierarchy navigation MDX functions (ParallelPeriod, PeriodsToDate, MTD, YTD, LAG(x), LEAD(x) etc.).
Questions:
This affects basic MDX hierarchy navigation functions when displaying sub totals.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.