Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin 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.
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
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
8 | |
8 | |
7 |
User | Count |
---|---|
13 | |
12 | |
11 | |
11 | |
8 |