Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I have a table with a list of customers; I also have a numeric range parameter. I want to show in a table or a multi-card all the customers with >= number of orders than the value in the parameter slicer. Is there a way?
Thank you!!
Solved! Go to Solution.
Hi @Anonymous,
You may try this solution.
Here is the sample data used.
Orders table
Numeric Range table
Then, you need a measure.
FilterCx =
VAR selectedNumeric =
SELECTEDVALUE ( 'Numeric Range'[numeric range parameter] )
VAR count_order =
CALCULATE ( COUNT ( Orders[orderDate] ), VALUES ( Orders[customer] ) )
RETURN
IF ( count_order >= selectedNumeric, 1, 0 )
After that, you need filter your table built with customers info with visual level filter.
The result will look like this.
Also, attached the pbix file as reference.
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please let me know. Thanks a lot!
Best Regards,
Community Support Team _ Caiyun
Hi @Anonymous,
You may try this solution.
Here is the sample data used.
Orders table
Numeric Range table
Then, you need a measure.
FilterCx =
VAR selectedNumeric =
SELECTEDVALUE ( 'Numeric Range'[numeric range parameter] )
VAR count_order =
CALCULATE ( COUNT ( Orders[orderDate] ), VALUES ( Orders[customer] ) )
RETURN
IF ( count_order >= selectedNumeric, 1, 0 )
After that, you need filter your table built with customers info with visual level filter.
The result will look like this.
Also, attached the pbix file as reference.
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please let me know. Thanks a lot!
Best Regards,
Community Support Team _ Caiyun
@Anonymous , Assume you have measure
Order count = count(Table[Order No])
or
Order count = countrows(Summarize(Table,Table[Order No]))
this joined with Customer dimension
Countx(Values(Customer[Customer]), if([Order count] >= [What if Parameter measure], [Customer], Blank() ))
You can sue what if parameter to select the parameter you wanted- https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-what-if
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
28 | |
12 | |
10 | |
10 | |
6 |