Forum Discussion
Need Help - Pivot table
Hi,
I'm new in Power BI. My question is how to create Pivot table (like excel) dashboard in Power BI? I want to get performance achievement percentage for each priority rows as per table below. Could you please help with steps?
| Priority | Met | Missed | Total Ticket | Performance Achievement |
| S2 | 11 | 0 | 11 | 100% |
| S3 | 282 | 0 | 282 | 100% |
| S4 | 94621 | 1685 | 96306 | 98.25% |
| SVIP | 1785 | 1696 | 1796 | 99.39% |
Hi,
Try these measures:
Met = CALCULATE(COUNTROWS(Table1),Table1[MeasurementStatus]="Met")
Missed = CALCULATE(COUNTROWS(Table1),Table1[MeasurementStatus]="Missed")
Total = [Met]+[Missed]
Performance (%) = [Met]/[Missed]
Hope this helps.
Hi ,
Please find the attached screen shot.Kindly have a look and confirm me if anything required.IF performance percentage needs to calcualte, we need create few measure.New is the table name
With the help of ashish mathur code i ahve created four measure.
Please find below the code as he given:
Met = CALCULATE(COUNTROWS(New),New[MeasurementStatus]="Met")Missed = CALCULATE(COUNTROWS(New),New[MeasurementStatus]="Missed")Total = 'New'[Met]+'New'[Missed]Performance percentage = 'New'[Met]/'New'[Total]Once we created kindly use matrix tableThanks
14 Replies
- AlBCommunity Champion
Hi Zaky
You can use the matrix visual. It works pretty much like a pivot table
- v-chuncz-msftCommunity Support
Zaky,
You may refer to the following post to add a measure.
https://community.powerbi.com/t5/Desktop/Dynamic-Difference-Measure-Using-Slicer/m-p/590745#M280280