This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
My YTD measure matches my MTD measure.
Solved! Go to Solution.
Hi @gatesmetbus
Maybe you can choose to write the dax without Time intelligence functions:
Abated Emergency WO MTD =
VAR _currentdate =
DAY ( MAX ( 'Day'[Date] ) )
VAR SelectedMonth =
SELECTEDVALUE ( 'Day'[Month] )
VAR SelectedYear =
SELECTEDVALUE ( 'Day'[Year] )
RETURN
IF (
NOT ( ISBLANK ( SelectedMonth ) ) && NOT ( ISBLANK ( SelectedYear ) ),
CALCULATE (
[Abated Emergency Work Orders],
FILTER (
ALL ( 'Day' ),
'Day'[Date] <= _currentdate
&& 'Day'[Date] >= DATE ( SelectedYear, 1, 1 )
)
),
BLANK ()
)
Best Regards
Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hey @gatesmetbus
Try this query for year calculation
Abated Emergency WO YTD =
VAR SelectedYear = SELECTEDVALUE('Day'[Year])
RETURN
IF(
NOT(ISBLANK(SelectedYear)),
TOTALYTD(
[Abated Emergency Work Orders],
'Day'[Date],
ALL('Day')
),
BLANK()
)
hey @elitesmitpatel ive tried that before and just not and no luck. Let me know what else I can share to help aid this
Hi @gatesmetbus
Maybe you can choose to write the dax without Time intelligence functions:
Abated Emergency WO MTD =
VAR _currentdate =
DAY ( MAX ( 'Day'[Date] ) )
VAR SelectedMonth =
SELECTEDVALUE ( 'Day'[Month] )
VAR SelectedYear =
SELECTEDVALUE ( 'Day'[Year] )
RETURN
IF (
NOT ( ISBLANK ( SelectedMonth ) ) && NOT ( ISBLANK ( SelectedYear ) ),
CALCULATE (
[Abated Emergency Work Orders],
FILTER (
ALL ( 'Day' ),
'Day'[Date] <= _currentdate
&& 'Day'[Date] >= DATE ( SelectedYear, 1, 1 )
)
),
BLANK ()
)
Best Regards
Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
hey thanks for answering i found a solution.
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 26 | |
| 25 | |
| 22 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 42 | |
| 41 | |
| 40 | |
| 21 | |
| 20 |