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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
bourne2000
Helper V
Helper V

Calculating Running Total using DAX Measures

Hi 

 

I have four tables which is connected as below

 

 

bourne2000_1-1665781973371.png

 

 

I have calculated below measures

 

 

 

 

 

Total Hours = CALCULATE(SUM('project__employee_timesheet'[Total Hours]),'aloro_live project__costcode_budget'[project_token] = "76212727")

 

 

 

 

 

 

 

 

 

 

 

JTD Qty Complete = CALCULATE(SUM('aloro_live project__costcode_quantity'[quantity]),'aloro_live project__costcode_quantity'[project token] = "76212727" )

 

 

 

 

 

 

 

 

 

 

 

JTD Unit Hours = IFERROR([Total Hours]/[JTD Qty Complete],0) * 100

 

 

 

 

 



All the above three measures are working correct. I would like calculate running total for JTD Unit Hours and I used below two measures but results are not correct
 

 

 

 

 

 

JT Unit Hours RT = SUMX(FILTER(ALLSELECTED('Date'[Date]), 'Date'[Date]<=MAX('Date'[Date])), [JTD Unit Hours])

 

 

 

 

If I use the above formula, I am getting below results. I visualize using weekend date

 

bourne2000_0-1665782621997.png

 

I used another below dax measures to calculate Running total again, the results are not correct

 

 

 

 

Unit Hours RT = CALCULATE([JTD Unit Hours], DATESYTD('Date'[Date]))

 

 

 

 

 

 
bourne2000_3-1665782469191.png
 
 
2 REPLIES 2
bourne2000
Helper V
Helper V

@amitchandak  Thanks. I marked the date table as date table. Still running total is not working.

amitchandak
Super User
Super User

@bourne2000 , Make sure date table is marked as date table. Column from Date table is used in visual for a week, month etc

 

Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5b...

 

If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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

Top Solution Authors