Forum Discussion

dfox09's avatar
dfox09
Icon for Helper III rankHelper III
4 years ago
Solved

Set the default value for slicer to 0

Here is the DAX for a Slicer that I am using to show revenue amount based on a carrier selected. If no carrier is selected, ir shows the total value for all of the carriers. How do I get the default ...
  • Samarth_18's avatar
    4 years ago

    Hi dfox09 ,

     

    You can try this:-

    measure =
    VAR result =
        CALCULATE (
            MAXX ( 'FactRFP', [Total Annual Premium & FeesCURRENT] ),
            REMOVEFILTERS ( 'DimCarrier' )
        )
    RETURN
        COALESCE ( result, 0 )
    --or you can try below
    --if(result = blank(),0,result)
    --or
    --result+0

     

    Thanks,

    Samarth