Forum Discussion

Neutralcats's avatar
Neutralcats
New Member
4 years ago
Solved

Changing cards based on filter selected

Hi, I have a report that takes state, subregional, and regional data and you can filter via a slicer on all three components. For instance, I can select Southeast, or East North Central, or State.. e...
  • amitchandak's avatar
    4 years ago

    Neutralcats , the above measurements should work at region and subregion with GT(Overall, no filter). But if you want to filter only the selected total you can use allselected

     

    like

    AverageLifeExpectCompare =
    VAR averageLifeExpect =
    CALCULATE( AVERAGE (Sheet1[Life Expectancy]),allselected(Sheet1[State]))
    RETURN
    IF (AVERAGE(Sheet1[Life Expectancy]) >= averageLifeExpect, "Above Average","Below Average")

     

    In case you want filter for Above and below avg, refer this video

    Customer Retention with Dynamic Segmentation, New/Lost/Retain Customer Count: https://www.youtube.com/watch?v=W4EF1f_k6iY