Forum Discussion
Dynamic Total Column based on slicer
- Anonymous4 years ago
Hi fabdata1207 ,
A calculated column is static, it won't change for slicer selection.
You may try a measure instead.
First you need to create a separate country table for the slicer to select. This country table cannot have a relationship with the main table.
A calculated table:
Country=DISTINCT('Table'[Country])Then, create a measure.
Total Dynamic Measure = CALCULATE(SUM('Table'[Value]),FILTER(ALLSELECTED('Table'),[Country] in ALLSELECTED(Country[Country])))You can check more details from the attachment.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi fabdata1207 ,
A calculated column is static, it won't change for slicer selection.
You may try a measure instead.
First you need to create a separate country table for the slicer to select. This country table cannot have a relationship with the main table.
A calculated table:
Country=DISTINCT('Table'[Country])
Then, create a measure.
Total Dynamic Measure = CALCULATE(SUM('Table'[Value]),FILTER(ALLSELECTED('Table'),[Country] in ALLSELECTED(Country[Country])))
You can check more details from the attachment.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.