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
snetsmart
Frequent Visitor

Recreate a calculated field/visual in Desktop found in content pack for Service

Hi all,

 

I've created many different interpretations of this in Desktop, but *something* is ellusive in duplicating this calculated field/cumulative visual that comes standard in the Service version. I can see totals for each day, but cannot figure out how to get the running total, day over day, for the life of the project, to work. Can anyone help me figure out the DAX behind it, and/or what fields are used from the odata data model?

 

I have a separate table built for Date Dimension and it's joined to the various date fields in the timephased data tables.

 

example.PNG

 Thanks!

Stefanie

 

5 REPLIES 5
BhaveshPatel
Community Champion
Community Champion

@snetsmart

 

This Blog will provide you complete information and No.of  different DAX Formulas for  calculating running totals.

 

 

 

Thanks & Regards,
Bhavesh

Love the Self Service BI.
Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to give Kudos.

Thanks, but that gave me all 0s. 😞  Also, I need it to sum over multiple years (projects span several years and need to capture plan/actuals for the whole project. 

This is yielding the below, which is correct for each day, but it's not rolling the previous day's total in. The sum at the end is correct.

example dax.PNG

example_dax_output.PNG

You should use this measure formula for counting running total for all the years in your fact table.

 

Actual Running Total:= CALCULATE(     SUM( AssignmentTimephaseDataset[AssignmentActualWork] ),
    FILTER(
        ALL( DateKey) ,
        DateKey[Date] <= MAX( DateKey[Date] )
    )
)

 

Note: DateKey is the name of the calender table.

Thanks & Regards,
Bhavesh

Love the Self Service BI.
Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to give Kudos.
ankitpatira
Community Champion
Community Champion

@snetsmart Running total using date dimension can achieved as below.

 

=TOTALYTD( SUM( FactSales[SalesAmount] ) , DimDate[Datekey] )

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.