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! Get ahead of the game and start preparing now! Learn more
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! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 35 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 134 | |
| 96 | |
| 78 | |
| 67 | |
| 65 |