Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
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
User | Count |
---|---|
12 | |
12 | |
8 | |
8 | |
6 |
User | Count |
---|---|
27 | |
19 | |
13 | |
11 | |
7 |