Forum Discussion
Zaky
7 years agoHelper IV
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. C...
- 7 years ago
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.
- 7 years ago
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
v-chuncz-msft
7 years agoCommunity 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