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,
Please give me explain of this measure.
Solved! Go to Solution.
hi, @answeriver
First, I will show how to use filter to get the result like DatesMTD.
It corresponds to a filter over the date column using FILTER called by CALCULATETABLE, such as in the following code:
CALCULATETABLE (
FILTER (
ALL ( 'Date'[Date] ),
AND (
'Date'[Date] <= MAX ( 'Date'[Date] ),
YEAR ( 'Date'[Date] ) = YEAR ( MAX ( 'Date'[Date] ) )
&& MONTH ( 'Date'[Date] ) = MONTH ( MAX ( 'Date'[Date] ) )
)
)
)
Second, I will explain why it returns blank.
For DatesMTD is a Time-intelligence function, and your date table still has other dates.
So it will keep calculating, so in the next month it returns blank value. and the result of Gauge is the result based on the whole table.
Therefore you have two ways to solve it.
1. use a date slicer to filter the date within dates that have data.
2. use the formula to create the Calendar table
Calendar = CALENDAR("2018-01-01",MAX(Table2[Date]))
And I recommend the first method.
Best Regards,
Lin
hi, @answeriver
First, I will show how to use filter to get the result like DatesMTD.
It corresponds to a filter over the date column using FILTER called by CALCULATETABLE, such as in the following code:
CALCULATETABLE (
FILTER (
ALL ( 'Date'[Date] ),
AND (
'Date'[Date] <= MAX ( 'Date'[Date] ),
YEAR ( 'Date'[Date] ) = YEAR ( MAX ( 'Date'[Date] ) )
&& MONTH ( 'Date'[Date] ) = MONTH ( MAX ( 'Date'[Date] ) )
)
)
)
Second, I will explain why it returns blank.
For DatesMTD is a Time-intelligence function, and your date table still has other dates.
So it will keep calculating, so in the next month it returns blank value. and the result of Gauge is the result based on the whole table.
Therefore you have two ways to solve it.
1. use a date slicer to filter the date within dates that have data.
2. use the formula to create the Calendar table
Calendar = CALENDAR("2018-01-01",MAX(Table2[Date]))
And I recommend the first method.
Best Regards,
Lin
Lin hello,
Thank you very much! I understood.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 62 | |
| 46 | |
| 42 | |
| 24 | |
| 18 |
| User | Count |
|---|---|
| 193 | |
| 124 | |
| 101 | |
| 67 | |
| 49 |