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,
I have issue DAX fomula with running total. I have done running total calculation in column F, what i have identify that my DAX formula is not populating same like manual calculation. Difference of running total i kept in column G.
help me understand where is the problem in my DAX.
I have updated excel file in below link
Below is the formula, i am using to get running total.
Solved! Go to Solution.
Sorry about that. Try this one:
Column = var __CurrentCreatedTime = Table2[CreatedTime] RETURN CALCULATE( SUM( Table2[Energy] ), FILTER( ALL( Table2 ), __CurrentCreatedTime >= Table2[CreatedTime] ) )
Did a check, and looks like the new column is what you would want:
Also, be sure to set your data types in Power Query.
try this code for a calculated column:
Column = var __CurrentDay = Table2[NewDay] var __CurrentTime= Table2[TimeFactor] RETURN CALCULATE( SUM( Table2[Energy] ), FILTER( ALL( Table2 ), __CurrentDay >= Table2[NewDay] && __CurrentTime >= Table2[TimeFactor] ) )
Hi @Anonymous ,
Thanks for your reply.
Whatever DAX which you have shared and i have created are showing same results but both the DAX fomulas shows same errors at one place. Below screenshot for your reference. Can you plesae help me on this.
Thanks,
K Raghavender Rao
Sorry about that. Try this one:
Column = var __CurrentCreatedTime = Table2[CreatedTime] RETURN CALCULATE( SUM( Table2[Energy] ), FILTER( ALL( Table2 ), __CurrentCreatedTime >= Table2[CreatedTime] ) )
Did a check, and looks like the new column is what you would want:
Also, be sure to set your data types in Power Query.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
94 | |
80 | |
68 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |