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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
ashwingupta
Frequent Visitor

Dynamic categorization based on dynamic value

Hi, 

 

My data contains User Codes and Amounts

 

Amounts range from $0 to $100,000,000. I want to allow the user to categorize each User Code based on a user controlled thresold. I have been trying to work this based on a parameter but based on research on this community I understand it might not be possible.

 

Desired Scenario:

 

Say the user selects the threshold to be $3,000,000. All User Codes with amounts lower than this get labeled "Below Threshold", all above it get labeled "Above Threshold" and all with $0 in the amount column get labeled "Zero". 

And these 3 categories are to be presented in a Pie Chart. So if the user shifts the threshold to $4,000,000, the pie chart should get updated based on the new categories.

 

Screenshot of a sample from the dataset.

 

ashwingupta_0-1705350795065.png

 

Any way to do this using parameter or measure or calculated column? Thanks.

1 ACCEPTED SOLUTION
vicky_
Super User
Super User

vicky__0-1705355142846.png

One way of acheiving this is through numeric range parameter: go to Modeling > New Parameter > Numeric Range to create a slicer. Note - this won't be dynamic, so you'll need to know the range of values for your Amounts. If that isn't really an option, then you can manually do the same thing by creating a calculated table with GENERATESERIES(). 

 

Then you can create measures such as 

Below Threshold Users = COUNTROWS(FILTER(UserCodes, UserCodes[Amount] <= Parameter[Parameter Value]))

 to use in your pie chart.

View solution in original post

1 REPLY 1
vicky_
Super User
Super User

vicky__0-1705355142846.png

One way of acheiving this is through numeric range parameter: go to Modeling > New Parameter > Numeric Range to create a slicer. Note - this won't be dynamic, so you'll need to know the range of values for your Amounts. If that isn't really an option, then you can manually do the same thing by creating a calculated table with GENERATESERIES(). 

 

Then you can create measures such as 

Below Threshold Users = COUNTROWS(FILTER(UserCodes, UserCodes[Amount] <= Parameter[Parameter Value]))

 to use in your pie chart.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors