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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Pradeep160
Frequent Visitor

Dynamic Slicer Working

I am working on a Power BI report that uses the Students data of a school. One of the key metrics that I have created is the attendance percentage, which is calculated as the ratio of total attended days to expected days of school attendance. I am showing the overall attendance of the students in a table visual with their roll number, name, and attendance percentage. I need to create a slicer that has different ranges of attendance percentages, such as <30%, <40%, <50%, <55%, <60%, <65%, <70%, and so on up to <100%. When I select a range from the slicer, for example <50%, I want to filter the table visual to display only those students whose attendance percentage is less than 50%. How can I achieve this functionality? Below is sample expected output.

 

Student IDStudent NameAttendance %
  1John48%
2Peter46%
3Morgan41%
   
1 ACCEPTED SOLUTION
miTutorials
Super User
Super User

You can achive this using What If Parameter, please see the below video from 7:40 onwards.

In the tutorial I have used the Cumulative % in the measure you can refer to your Attendance % column and follow rest of the steps.

 

Dynamic Segmentation: Identifying Top & Bottom N% Customers by Sales in Power BI | MiTutorials - You...

View solution in original post

3 REPLIES 3
miTutorials
Super User
Super User

You can achive this using What If Parameter, please see the below video from 7:40 onwards.

In the tutorial I have used the Cumulative % in the measure you can refer to your Attendance % column and follow rest of the steps.

 

Dynamic Segmentation: Identifying Top & Bottom N% Customers by Sales in Power BI | MiTutorials - You...

Thank you @miTutorials. It worked. 

Pragati11
Super User
Super User

HI @Pradeep160 ,

 

Have you tried using what-if parameters in this case?

 

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.