Forum Discussion
Baseline month data measure
- Anonymous2 years ago
Hi Iculi
I tested your Dax and I came up with the problem:
You misplaced the brackets,
Here is the modified Dax:
Baseline Volume = CALCULATE( SUM('DateTable'[Volume]), FILTER( DateTable, YEAR(DateTable[Date])=2023 && MONTH(DateTable[Date])=12) )You can open the feature in the option,
so you can use this button to format the code for better inspection.
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.
Hi Iculi
I tested your Dax and I came up with the problem:
You misplaced the brackets,
Here is the modified Dax:
Baseline Volume =
CALCULATE(
SUM('DateTable'[Volume]),
FILTER( DateTable,
YEAR(DateTable[Date])=2023
&&
MONTH(DateTable[Date])=12)
)
You can open the feature in the option,
so you can use this button to format the code for better inspection.
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.
- Iculi2 years agoFrequent Visitor
Hi Zhengdong Xu,
Thank you for your answer, i also find the solution but my formula a little bit different, in the FILTER part i have used different way: FILTER(DateTable,DateTable[Year]=2023 && (DateTable[Month_nr]=12)))
and it is also work. But i will use your version.. 🙂
Thank you for your help!
Icu