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!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Hi,
I need help on this Measure function. I tried below one got error. Any help on this?
if [Reference Date]>= [Last Date]
then
Floor(((year[Reference Date]*12)+Month[Reference Date])/3-((year[Last Date]*12)+Month[Last Date])/3))
Solved! Go to Solution.
@Anonymous , Half DAX half power query
In power query
if [Reference Date]>= [Last Date]
then
Number.RoundDown(((Date.Year([Reference Date])*12)+Date.Month([Reference Date]))/3-((Date.Year([Last Date])*12)+Date.Year([Last Date]))/3)
else null
DAX like
if( [Reference Date]>= [Last Date]
,
Floor(((year([Reference Date])*12)+Month([Reference Date]))/3-((year([Last Date])*12)+Month([Last Date])/3)))
@Anonymous , Half DAX half power query
In power query
if [Reference Date]>= [Last Date]
then
Number.RoundDown(((Date.Year([Reference Date])*12)+Date.Month([Reference Date]))/3-((Date.Year([Last Date])*12)+Date.Year([Last Date]))/3)
else null
DAX like
if( [Reference Date]>= [Last Date]
,
Floor(((year([Reference Date])*12)+Month([Reference Date]))/3-((year([Last Date])*12)+Month([Last Date])/3)))
Small typo from your side. else all fine. You are awesome. 👍
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 60 | |
| 47 | |
| 39 | |
| 24 | |
| 23 |
| User | Count |
|---|---|
| 144 | |
| 106 | |
| 63 | |
| 38 | |
| 31 |