Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
70 | |
55 | |
37 | |
31 |
User | Count |
---|---|
83 | |
64 | |
63 | |
49 | |
45 |