Forum Discussion

crisc's avatar
crisc
Helper I
6 years ago
Solved

Running total in DirectQuery / Dual Mode refresh

Hello everyone,   we are facing a problem with a small report based on DirectQuery. The report contains two tables: Dimension table (Imported) Fact table (DirectQuery) A key element of the re...
  • d_gosbell's avatar
    d_gosbell
    6 years ago

    If it was a user rights issue I would not expect normal non-cummulative measures to work either. So if straight sum or count based measures work then I doubt this is the issue.

     

    I created a DirectQuery model against a local copy of the AdventureWorks sample database and both the patterns I posted worked without issue even when adding slicers from other tables. So I'm guessing that it must be something in your database or something else in your report.

     

    To trouble shoot this I would suggest either using the Performance Analyzer in Power BI Desktop or the All Queries trace in DAX Studio to capture the DAX generated by the visual with your cummulative measure. Then you could re-run the query in DAX Studio (while connected to your DirectQuery model in Power BI Desktop) this time using the Server Timings trace. This will show you the one or more SQL queries that the DAX query generates in order to produce the results. Then you can play around with those queries to see if you can find a hint as to the root cause of this issue.