Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Likely an easy one for a Power BI Guru, but my calculation is not returning the correct result.
I have data like the below table, with Device Returned Date coming from a separate data source.
The Cost Since Return column (that I'm trying to write a calculation for) is shown above as my desired result.
I'm trying to write a calculation that can give me totals like:
I'm not sure what I'm doing wrong but my calculation is showing incorrect figures between Service Cost and Cost Since Return, giving me bogus totals.
Any help greatly appreciated.
Solved! Go to Solution.
Hi @sherwood ,
According to your description, here are my steps you can follow as a solution.
(1) My test data is the same as yours.
(2) We can create a calculated column.
Cost Since Return = IF(EOMONTH([Billing Month],0)>EOMONTH([Device Returned Date],0)&&[Device Returned Date]<>BLANK(),[Service Cost],0)
(3) Then the result is as follows.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @sherwood ,
According to your description, here are my steps you can follow as a solution.
(1) My test data is the same as yours.
(2) We can create a calculated column.
Cost Since Return = IF(EOMONTH([Billing Month],0)>EOMONTH([Device Returned Date],0)&&[Device Returned Date]<>BLANK(),[Service Cost],0)
(3) Then the result is as follows.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Many thanks, this works perfectly!