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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
mrouxfrench
Frequent Visitor

Filter my data by a measure

Hi,
I would like to create a slicer which filters my data following a measure value.

Basically my data is a fact table storing customers purchases monthly:

Customer IDMonthNb purchases
AOctober13
BOctober8
ANovember14
CNovember20
BDecember31

 

I created a measure that calculates for my customers if they appear in all selected months or not (returns "Yes" or "No" for each customer)

 

Now I want a to set a slicer with Yes/No options.

For example in the above example: let's say I selected months October and November in a slicer, I would like a new Yes/No slicer that updates my table on customer A rows (because he appears in oct and nov)

Customer IDMonthNb purchases
AOctober13
ANovember14

 

Can someone help me on this?

Sorry if it's obvious to you, I claim myself to be a PBI newbie 🙂

1 REPLY 1
amitchandak
Super User
Super User

@mrouxfrench , Not very clear , Try a measure like

 

measure =
var _max = maxx(allselected(Table), Table[Month])
return
if(calculate(distinctcount(Table[Month]), allexcept(Table, Table[Customer ID])) >=_max, "Yes", "No")

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
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 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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