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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi, I have matrix that shows a breakdown of days, using the following switch() function
Hi,
Share the download link of the PBI file. Should the denominator be the column total, row total or the grand total?
So basically You cannot create multiple columns of different data sources using the switch....You can only work with one field at a time (other than using multiple fields in parameters.
Hi @SteveCS Please try these out
Create a measure for the total count:
Total Count = COUNTROWS('YourTableName')Keep your Aging_At_Activity Split calculation as is.
Create a measure for each bucket's count:
Count Bucket Days =
CALCULATE(
COUNTROWS('YourTableName'),
'YourTableName'[DaysDifference] >= 1 && 'YourTableName'[DaysDifference] <= 3
)Create percentage measures for each bucket:
Percent Bucket Days = DIVIDE([Count 1-3 Days], [Total Count], 0)
Add the counts and percentages to your matrix.
Thank for this. But does this allow me to have a matrix where the columns visually appear as
Count | Percentage| Count | Percentage | count | percentage | total
You will have to create a custom table along with the above and then union all the above into that table
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 66 | |
| 47 | |
| 43 | |
| 26 | |
| 19 |
| User | Count |
|---|---|
| 198 | |
| 126 | |
| 102 | |
| 67 | |
| 50 |