The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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