Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi Team,
I am getting total value Incorrect.
The total value display in power bi for the entire month of the previous period but I need only total value for the previous period for current date matching.
Please find measure for the previous period:
previous period =
Hi @arvindyadav ,
You can try to create a measure like DAX below.
Previous Period Profit = CALCULATE(SUM(Table1[Profit]),DATEADD(Table1[Date],-12,MONTH))
Best Regards,
Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @v-xicai ,
Can you please read the Message once again I have made changes. your Dax is not works for me.
The result I am getting after applying your measure is:
Hi @arvindyadav
Can you provide a file with some sample data? That could help better understanding the situation
Hi @Geradav ,
Now I am getting total value perfect but date wise value is incorrect.
Please find attached.
Hi @arvindyadav
Not sure to understand you correctly.
Which part of your visual is not showing you the right result? And what result would you expect?
Hi @Geradav ,
If you see your Image and mine Image only total of previous month matching but the individual date profit not matching where the dataset is the same.
Thanks,
Arvind
Maybe you send me your file with the DAX statement at david@fumastra.com
Hi @Geradav ,
The problem is when I select date range day before yesterdays the data showing me the correct value but when I select date range till yesterdays the total value shows me the entire profit of a previous period month.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.