Forum Discussion
Create New Measure that Filters Current Measure to a Specific Year
- 1 year ago
Hi
You can create two separate measures that filter the
Compliance % measure for 2023 and 2024 using theCALCULATE function in DAX. Assuming your date table is named'Date' and the year column is'Year', the syntax would be:Compliance 2023 % = CALCULATE( [Compliance %], 'Date'[Year] = 2023 )Compliance 2024 % = CALCULATE( [Compliance %], 'Date'[Year] = 2024 )Let me know if you need further refinements! 🚀
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Happy to help!
Hi
You can create two separate measures that filter the Compliance % measure for 2023 and 2024 using the CALCULATE function in DAX. Assuming your date table is named 'Date' and the year column is 'Year', the syntax would be:
Compliance 2023 % =
CALCULATE(
[Compliance %],
'Date'[Year] = 2023
)
Compliance 2024 % =
CALCULATE(
[Compliance %],
'Date'[Year] = 2024
)
Let me know if you need further refinements! 🚀
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Happy to help!
Success! Thank you very much, I was overthinking the measure syntax turns out.