Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Hi All,
I am calculating the running total using quick measures which is easy enough but I am getting incorrect values
The Base Value is a measure called Total Revenue. The Field is Date which contains the dates at the End of Month only
The Total Revenue measure consists of two measures added together
Please see the screenshot below:
I have also tried using DATESINPERIOD and still it returns the same incorrect values:
Solved! Go to Solution.
Hi,
Try this approach
Measure = CALCULATE([Total Revenue],datesbetween(calendar[date],edate(min(calendar[date]),-11),max(calendar[date])))
Hope this helps.
Thanks for the reply from Ashish_Mathur and vicky_ , please allow me to provide another insight:
Hi, @Isaiahj09
Can you tell me if your problem is solved? If yes, please accept their reply as solution.
Your dax is currently working fine in my test environment, so I'm guessing that the reason why your run is not what you expect may be due to your "Total Revenue" measure, and here are my measurements:
1.First I have created the following table and the column names and data are the data you have given:
2. Below are the measure I've created for your needs:
Total Revenue = SUM('Alteryx TB'[1])
3.Here's my final result, which I hope meets your requirements.
Please find the attached pbix relevant to the case.
Of course, you can also try updating your desktop version to see if that solves the problem:
Download Microsoft Power BI Desktop from Official Microsoft Download Center
Best Regards,
Leroy Lu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks for the reply from Ashish_Mathur and vicky_ , please allow me to provide another insight:
Hi, @Isaiahj09
Can you tell me if your problem is solved? If yes, please accept their reply as solution.
Your dax is currently working fine in my test environment, so I'm guessing that the reason why your run is not what you expect may be due to your "Total Revenue" measure, and here are my measurements:
1.First I have created the following table and the column names and data are the data you have given:
2. Below are the measure I've created for your needs:
Total Revenue = SUM('Alteryx TB'[1])
3.Here's my final result, which I hope meets your requirements.
Please find the attached pbix relevant to the case.
Of course, you can also try updating your desktop version to see if that solves the problem:
Download Microsoft Power BI Desktop from Official Microsoft Download Center
Best Regards,
Leroy Lu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you !
It seems it was indeed an issue with the dates in my original table.
Hi,
Try this approach
Measure = CALCULATE([Total Revenue],datesbetween(calendar[date],edate(min(calendar[date]),-11),max(calendar[date])))
Hope this helps.
Thank you! The numbers are fixed now with this method
Marked as solved !
I suspect there's something funky happening with your calculate and dates, but it isn't really possible to debug with the given information. However, if you've got a more recent version of PowerBI, you can try using the running sum in Visual Calculations which will handle those types of calculations for you- https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-visual-calculations-overview#usin...