Forum Discussion
AyeshaA10
3 years agoFrequent Visitor
Bottom N based on Condition
Hi! I am very new to Power BI and this is my first post here on the Power BI forums. I have previously found quite a few gems on here that I applied to my work. I am hoping I might get an answer ...
- 3 years ago
Hi AyeshaA10 ,
You can use filters in your case to showcase your results:
Hope this helps, please let me know if this doesnot work out.
- 3 years ago
Create a measure like
Is At Risk = VAR CurrentStudent = SELECTEDVALUE ( 'Grading Data'[Student ID] ) VAR AtRiskStudents = TOPN ( 10, ALL ( 'Grading Data' ), 'Grading Data'[Total], ASC ) VAR VisibleAtRiskStudents = SELECTCOLUMNS ( FILTER ( AtRiskStudents, 'Grading Data'[Total] < 50 ), 'Grading Data'[Student ID] ) VAR Result = IF ( CurrentStudent IN VisibleAtRiskStudents, 1 ) RETURN Resultand add this as a visual level filter to only show when the value is 1
- 3 years ago
Thank you very much for your help! I've saved this DAX measure. I think this is going to come in handy later.
AyeshaA10
3 years agoFrequent Visitor
Thank you so much for your help. This worked great!
InsightsByV
3 years agoSuper User
Glad to help! 🙂