Forum Discussion
Measure value is not right
As Vvelarde said, calculated column can’t dynamically change its value. So we have to need to use measure to do the calculation.
I create a test table named YearTable like below. It has no relationship with the Duration table.
We can create a measure with following formula.
Checking =
VAR DM = [Durations(Measure)]
RETURN
IF (
COUNTROWS ( FILTER ( YearTable, YearTable[Year] <= DM ) )
> 0,
"Yes",
"No"
)
Best Regards,
Herbert
- ngadiez9 years agoHelper II
Thank you so much for the testing.
I have tried it and it's working.
However, I'm still trying how to incorporate this to mimic the same thing I want to achieve from calculated column. Because I want to do filtering based on the calculated column in DAX.
Anyway, thank you so much for your help.
- v-haibl-msft9 years agoMicrosoft Employee
If it is woking, you can mark the right answer as solution, so that other users who have the same problem can find the solution quickly. :)
Best Regards,
Herbert