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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
BossCo
Helper II
Helper II

MDX query for filtered slicer in Power BI

Hi! I've got a PowerBi report connected to a SSAS Multidimensional model (cube). I'm writing all my queries in MDX.

 

I need a customer slicer which only shows me customers with sales. Is there a way to do this?

 

Thanks

3 REPLIES 3
BossCo
Helper II
Helper II

Hi, being connected to a SSAS cube, is not possible neither to create a new measure in DAX nor to filter the slicer by a measure. I'm trying to solve the problem in Analysis Services. Thanks!

 

v-deddai1-msft
Community Support
Community Support

Hi @BossCo ,

 

You can  create  a measure , and add it to visual level filter :

 

 

measure = SUM(Table[sales])

 

Capture.PNG 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

 

amitchandak
Super User
Super User

@BossCo , If you have slicer from the customer which has all customers.

filter it on sales <> blank.

 

This for two slicers, but will work for one slicer too

https://www.youtube.com/watch?v=cyOquvfhzNM

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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