Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
CuriousGuy001
Helper I
Helper I

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
1 ACCEPTED SOLUTION
OwenAuger
Super User
Super User

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.

OwenAuger_0-1717200885429.png

 

OwenAuger_1-1717200895789.png

 

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

 

Regards


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

View solution in original post

2 REPLIES 2
OwenAuger
Super User
Super User

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.

OwenAuger_0-1717200885429.png

 

OwenAuger_1-1717200895789.png

 

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

 

Regards


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

Hi @OwenAuger ,

 

   This solution works too. Simple and easy. Thank you!

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.