Forum Discussion
Evaluate Measure in Calculated Column with Disconnected Table
- 5 years ago
Hi Anonymous ,
I create a table: SlicerValue
Column1 1 2 0 And a Calculate Table:
Calculate Table = CROSSJOIN( DISTINCT('Table'[Period]), SlicerValue )Then create measure and filter Column1 field by Measure.
Measure = var currentyear = SELECTEDVALUE('Year Filter'[Year Filter]) var selection = IF(currentyear = 2020, 1, IF(currentyear = 2021, 2, 0)) return IF( MAX('Calculate Table'[Column1]) = selection, 1 )If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
WinnizIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Anonymous ,
I create a table: SlicerValue
| Column1 |
| 1 |
| 2 |
| 0 |
And a Calculate Table:
Calculate Table = CROSSJOIN( DISTINCT('Table'[Period]), SlicerValue )
Then create measure and filter Column1 field by Measure.
Measure =
var currentyear = SELECTEDVALUE('Year Filter'[Year Filter])
var selection = IF(currentyear = 2020, 1, IF(currentyear = 2021, 2, 0))
return IF( MAX('Calculate Table'[Column1]) = selection, 1 )
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
This appears to solve my issue. Thank you all for your help