Forum Discussion

CuriousGuy001's avatar
2 years ago
Solved

Making Slicer with 1 Variable

Hi everyone,

 

I am trying to make a slicer that can show only 1 variable, "NA", and not show other order number. I did on measure and then parameter but it doesn't filter properly. Also I made it to a relationship, still doesn't filter it out.

 

NA =
    CALCULATE(
        SUM('Margin  Sheet 2024'[Gross Sale less HST]),
        FILTER(
            'Margin  Sheet 2024',
            'Margin  Sheet 2024'[Centah-Order#] IN {"NA"}
        )
    )
)
 
The problem is when I drag the Centah-order to the field, it display a list of order, and I don't want it to show but only, "NA" so I can make toggle on/off
  • Hi CuriousGuy001 

    Here's one idea that may be close to what you're looking for (PBIX attached):

     

    Create a slicer with Centah-Order# but apply a visual filter on the slicer Centah-Order# = "NA".

     

    1. When no selection is made on the slicer, no filter is applied to Centah-Order#.
    2. When NA is selected on the slicer, the filter Centah-Order# = "NA" is applied.

     

     

    Is this what you're looking for or something different?

     

    Regards

2 Replies

  • Hi CuriousGuy001 

    Here's one idea that may be close to what you're looking for (PBIX attached):

     

    Create a slicer with Centah-Order# but apply a visual filter on the slicer Centah-Order# = "NA".

     

    1. When no selection is made on the slicer, no filter is applied to Centah-Order#.
    2. When NA is selected on the slicer, the filter Centah-Order# = "NA" is applied.

     

     

    Is this what you're looking for or something different?

     

    Regards