Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
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.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 49 | |
| 34 | |
| 33 | |
| 16 | |
| 16 |
| User | Count |
|---|---|
| 60 | |
| 59 | |
| 39 | |
| 25 | |
| 24 |