Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello,
I am new here. I have a measure created below:
OP_Act = CALCULATE(sum('OP - Data'[Fcst_Act]), 'OP - Data'[Fcst Type]="Actual", 'OP - Data'[OP_date] < date (2018,5,15) )
Every month, I have to manually update the filter -e.g. date (2018,5,15) to date (2018,6,15 ). I have many similar measures. I'd like to create a new measure like
OP_Act = CALCULATE(sum('OP - Data'[Fcst_Act]), 'OP - Data'[Fcst Type]="Actual", 'OP - Data'[OP_date] < [Control_date]).
As long as I update [Control_date] only, the changes can be applied to many measures. Is there any way I can do? Why I can use now() but not a specifc date I created?
Thanks,
Solved! Go to Solution.
Hi @tchen0,
You just need to create a measure for [Control_Date].
Control_Date = DATE(2018,5,15)
By the way, the correct formula should be:
OP_Act =
CALCULATE (
SUM ( 'OP - Data'[Fcst_Act] ),
FILTER (
'OP - Data',
'OP - Data'[Fcst Type] = "Actual"
&& 'OP - Data'[OP_date] < [Control_Date]
)
)
Best regards,
Yuliana Gu
Hi @tchen0,
You just need to create a measure for [Control_Date].
Control_Date = DATE(2018,5,15)
By the way, the correct formula should be:
OP_Act =
CALCULATE (
SUM ( 'OP - Data'[Fcst_Act] ),
FILTER (
'OP - Data',
'OP - Data'[Fcst Type] = "Actual"
&& 'OP - Data'[OP_date] < [Control_Date]
)
)
Best regards,
Yuliana Gu
Hello,
I am new here. I have a measure created below:
OP_Act = CALCULATE(sum('OP - Data'[Fcst_Act]), 'OP - Data'[Fcst Type]="Actual", 'OP - Data'[OP_date] < date (2018,5,15) )
Every month, I have to manually update the filter -e.g. date (2018,5,15) to date (2018,6,15 ). I have many similar measures. I'd like to create a new measure like
OP_Act = CALCULATE(sum('OP - Data'[Fcst_Act]), 'OP - Data'[Fcst Type]="Actual", 'OP - Data'[OP_date] < [Control_date]).
As long as I update [Control_date] only, the changes can be applied to many measures. Is there any way I can do? Why I can use now() but not a specifc date I created?
Thanks,
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
94 | |
81 | |
66 | |
58 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |