Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Good day,
I've used other BI tools but am relatively new to Power BI. Here's my challenge.
I created a lookup table that can be used in the calculation.
Elementary Attendance Days Absent Range
Here's the DAX expression I'm trying to use. Note that [Elementary Attendance Students] is a distinct count of student numbers.
Days Absent Range =
VAR AgeRangeDimension = VALUES('D: Student'[OEN])
RETURN
CALCULATE ([Elementary Attendance Students],
FILTER ( AgeRangeDimension,
COUNTROWS(
FILTER('Elementary Attendance Days Absent Range',
RANKX( ALL ('D: Student'[OEN] ), 'M: Elementary Attendance'[Days Absent], , DESC ) > 'Elementary Attendance Days Absent Range'[Min Days]
&& RANKX(ALL ('D: Student'[OEN] ), 'M: Elementary Attendance'[Days Absent], , DESC ) <= 'Elementary Attendance Days Absent Range'[Max Days] ) ) > 0
)
)When I use this column in a dashboard, I just get the value of large number which I beliegve is just summing all of the stduents. Here are the questions that I'm hoping you can help with.
Thanks a lot for your help;
Dave
Solved! Go to Solution.
You may refer to the following post.
https://community.powerbi.com/t5/Desktop/Create-a-bar-graph-with-measures-as-axis/td-p/455900
You may refer to the following post.
https://community.powerbi.com/t5/Desktop/Create-a-bar-graph-with-measures-as-axis/td-p/455900
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 1 |