Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Need assistance on syntax, I have a measure Compliance % that exists in a Compliance Data table and has the following syntax:
Solved! Go to Solution.
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!
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.
User | Count |
---|---|
84 | |
79 | |
71 | |
47 | |
42 |
User | Count |
---|---|
109 | |
54 | |
50 | |
40 | |
40 |