Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Lewa
Helper I
Helper I

Running Totals In PowerBI Get Data List.Accumulate()

Hi all!

 

Please, tell me:

-- how to rewrite a DAX-formula for M-notation? it is necessary for slice

 

 

CALCULATE(
    SUM(Data[Fact]); FILTER(
        ALLEXCEPT(Data; Data[ref_Employee]; 'Data'[ref_ts_Project]); 
Data[Date] <= EARLIER(Data[Date]) ) )

 


I tried to write the correct P-query:

 

 

RTList = List.Accumulate(
              FactList, {0}, ( SoFar, ThisStep ) => 
SoFar & { List.Last( SoFar ) + ThisStep }) #"FFWD Changed Type", "Running Total", each RTList{ [INDEX] })

 

 

It's amazing, but how add Group (AllExcept)  by "ref_Employee" and "ref_ts_Project"?

 

Regards

1 ACCEPTED SOLUTION
2 REPLIES 2
Lewa
Helper I
Helper I

Up

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.