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
nbs33
Helper II
Helper II

Measure slicer not filtering table correctly

Hi,

 

I am segementing customers into categories based on time periods, and by specific flags in the data set. I have confirmed my logic for the categories is correct and the counts of customers in each category is correct. 

 

I want to have a slicer so the user can select a category and it will filter the table to just those cusotmers. I have attached a sample data set here. There is only data for YoY.  When I select Lost in the slicer I would expect 617 values but I am only getting one customer in the table. Non of categories gives the right value in the table. I can't figure out where my logical error is. 

 

Any help is greatly appreicated. 

 

nbs33_0-1664745489916.png

 

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

@nbs33 I'm not entirely sure what you are going for here exactly, but your Buckets Slicer isn't connected to any tables. That means you have to form the relationship in the Measure. Your Retained and Organic measures work but there's something off about your Lost and Acquired measures. You basically need a measure along the lines of below but you'll also have to fix your Lost and Aquired measures to work more like your Retained and Organic measures. PBIX is attached below signature.

Measure = 
    VAR __Group = SELECTEDVALUE('Buckets Slicer'[Groups])
RETURN
    SWITCH(__Group,
        "All",COUNTROWS(DISTINCT(ALL('BoB'[CustomerKey]))),
        "Lost",[Lost],
        "Retained",[Retained],
        "Organic",[Organic],
        "Acquired",[Acquired],
        BLANK()
    )


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler thanks for the response. I was using a table filter to create that relationship to my disconnected slicer but that didn't work

 

nbs33_0-1664804179989.png

 

Not sure what could be wrong with my Lost and Acquired because the out is just a list of Customers. 

 

I've been struggling with this issue for awhile. Any other apporaches your can think of? Since I have a time dimension slicer I can't use a calculated table.

 

Thanks again!

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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