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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi All,
I need to use the ABS function in Power BI.
SUM(ABS(ENTERED_DATE-CLOSED_DATE)/30)
How can I achieve this in Power BI??
Thanks,
Narender
Solved! Go to Solution.
Diff = ROUND(ABS(DATEDIFF(TestABS[EnteredDate],TestABS[ClosedDate],DAY)),2)
Proud to be a PBI Community Champion
@Narender Please try adding as "Calculated Column" as below
Diff = ABS(DATEDIFF(TestABS[EnteredDate],TestABS[ClosedDate],DAY))
Then you can have a measure to calculate SUM of Diff
Total = SUM(TestABS[Diff])
Proud to be a PBI Community Champion
Hi,
Thanks for your feedback
It is giving me right result.
Can you please round it with 2 decimal points in same ABS formula?
Thanks
Diff = ROUND(ABS(DATEDIFF(TestABS[EnteredDate],TestABS[ClosedDate],DAY)),2)
Proud to be a PBI Community Champion
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 104 | |
| 82 | |
| 72 | |
| 46 | |
| 35 |