Forum Discussion

AllanBerces's avatar
AllanBerces
Post Prodigy
1 year ago
Solved

Slicer default value

Hi good day,

Pls need help on how to set the default value on my card if non selected on my slicer, all data is in one table only. Please refer below link. what they required is the green column to be the deafult value if non selected on my slicer

 

https://docs.google.com/spreadsheets/d/1tzzTU6LZJ8Y9NATiMWlbUgwPyN58eN4O/edit?usp=sharing&ouid=108506264278584806223&rtpof=true&sd=true

 

 

https://drive.google.com/file/d/16-nb6LiROQ9vUA11ErqGamGE42ouGIA9/view?usp=sharing

 

Thank you

 

  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi AllanBerces ,

    Based on the testing, try using the following dax formula.

    DefaultValue = 
    var _selected = SELECTEDVALUE('EAST AND WEST'[E&W])
    RETURN
    IF(
        ISBLANK(_selected),
        CALCULATE(SUM('TRS'[Overall_PT_YTD])),
        CALCULATE(SUM('TRS'[SUM_PT_by_AREA]), 'TRS'[AREA] = SELECTEDVALUE('EAST AND WEST'[E&W]))
    )

    Then, drag the measure to the card visual.

    Best Regards,

    Wisdom Wu

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

5 Replies