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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Dear Power BI Comunity,
I want to calculate the difference between two dates in quarters.
However I'm getting a woring values below a screenshot,
Thanks in advance,
Solved! Go to Solution.
Hi @Mokhtar ,
I think you could refer to @az38 ' s suggestions to check whether you set aggregation on column
Or you could try below expression
Column = 'Table'[end].[QuarterNo]-'Table'[start].[QuarterNo]
Best Regards,
Zoe Zhi
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Mokhtar ,
I think you could refer to @az38 ' s suggestions to check whether you set aggregation on column
Or you could try below expression
Column = 'Table'[end].[QuarterNo]-'Table'[start].[QuarterNo]
Best Regards,
Zoe Zhi
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello,
Thanks for the answer. It was because of the aggregation.
Regards,
Mokhtar
Hi @Mokhtar ,
Your result looks correct according to your DAX used. You are returning difference between 2 dates in QUARTER. Therefore the result is 1. Because 30 Dec 2019 is 1 Quarter before 15 Mar 2020.
If you want the difference between 2 dates in Months, Days, etc., you need to chnage the 3rd paratmeter in your DATEDIFF functions.
Refer the following link for the same:
https://docs.microsoft.com/en-us/dax/datediff-function-dax
If this helps and resolves the issue, appreciate a Kudos and mark it as a Solution! 🙂
Thanks,
Pragati
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.