Forum Discussion

IF's avatar
IF
Icon for Post Prodigy rankPost Prodigy
6 years ago
Solved

Default selection with or without a slicer

Hi community,   I have a quite complicated scnario. Below you will find the example data, you can copy past to the power bi or you can download the file from: https://gofile.io/d/wo5E1V   I have ...
  • lkalawski's avatar
    lkalawski
    6 years ago

    Hi IF ,

     

    Please try this measure:

    Plan Working = 
    VAR _slider1 = SELECTEDVALUE('Table'[Slider1])
    
    RETURN
    IF(NOT(HASONEVALUE('Table'[Slider1])) && NOT(HASONEVALUE('Table'[Slider2])),
    CALCULATE(Sum('Table'[Value]), FILTER('Table', 'Table'[Slider1] = "#" && 'Table'[Slider2] = "#")),
    [Plan Working3]
    )



    _______________
    If I helped, please accept the solution and give kudos! 😀