This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowJuly 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more
I have healthcare data such that I have a table of visits grouped by month, caregiver, and patient. A single caregiver can have multiple patients. A single patient can have multiple caregivers. In this table, I have columns "compliant visits" and "completed visits." To calculate the % compliance, I have created a measure that takes the sum of completed visits and divides it by the sum of compliant visits.
I want a pivot table visualization such that the rows are compliance "buckets" and the columns are months that are filtered with a slicer:
| Month 1 | Month 2 | Month 3 | Month 4 | Month 5 | Month 6 | |
| 95.00%-100.00% | ||||||
| 90.00%-94.99% | ||||||
| 85.00%-89.99% | ||||||
| 80.00%-84.99% | ||||||
| 75.00%-79.99% | ||||||
| 50.00-74.99% | ||||||
| 25.00%-49.99% | ||||||
| 0.00%-24.99% |
I created this measure categorizing the Compliance% measure:
I need 8 of these visualization all with different values (# patients, # hours, # visits... etc). My first thought was to make summarize tables from my main table grouping on different metrics I need. However, the team I am distributing this to wants to be able to filter on caregivers who have or have not been terminated so I need to use my original table instead of grouping on patients.
The dilemma is I am getting placeholder errors in my measures because I am wanting to count specific things in my table based off the compliance% measure. This is one of the measure I want as values in my pivot table:
You cannot have dynamic buckets in Power BI. You need to have a prepared reference table with all desired/possible bucket values, Then you can use your measure to fill these buckets.
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!
Check out the July 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 25 | |
| 23 | |
| 19 | |
| 17 | |
| 14 |
| User | Count |
|---|---|
| 25 | |
| 23 | |
| 20 | |
| 20 | |
| 19 |