Forum Discussion
Percentile
Hi Saranya3_d ,
You need to create a ranking in order to compare with the percentile value and then use that to find your MTTR.
- Create an ID column on the MTTR table that will be used for your ranking (just add zeros to the rigth in order to have all the hours with the same length:
| Priority | MTTR | ID |
| P1 | 3:46:38 | 003:46:38 |
| P1 | 5:49:01 | 005:49:01 |
| P2 | 10:00:01 | 010:00:01 |
| P1 | 32:08:44 | 032:08:44 |
| P1 | 93:58:18 | 093:58:18 |
| P2 | 50:00:50 | 050:00:50 |
| P2 | 413:00:17 | 413:00:17 |
- Depending on the way you want to do things you may want to do the ranking wiht a measure or with a calculated column result is similar however the measure allows to be more dinamic
Measure Ranking =
RANKX (
FILTER (
ALLSELECTED ( MTTR_Table ),
MTTR_Table[Priority] = MAX ( MTTR_Table[Priority] )
),
CALCULATE ( MAX ( MTTR_Table[ID] ) ),
,
asc,
DENSE
)
Column Ranking =
RANKX (
FILTER ( MTTR_Table, MTTR_Table[Priority] = EARLIER ( MTTR_Table[Priority] ) ),
MTTR_Table[ID],
,
asc,
DENSE
)
Now just add the following measure for each Percentile:
P95 MTTR =
CALCULATE (
MAX ( MTTR_Table[MTTR] ),
FILTER (
ALL ( MTTR_Table ),
[Measure Ranking] = [P95]
&& MTTR_Table[Priority] = SELECTEDVALUE ( Priority[Priority] )
)
)
Formula is based on the measure but you can do it based on the column. Also I did not know if you had a Priority for dimension and connecting both of the table but this is not
Check result in attach PBIX.
Hi MFlexi,
Thanks a ton for your response!
I did the same in my pbix file but MTTR is showing as blank. i have attached the screenshot of the pbix file (no measure or columns in the data) for your reference. I tried to attach here but couldn't see the attachment icon.
Request you to help me to arrive the percentile please. It would be great help :)!!
Waiting for your reply! Thanks in Advance!
Thanks,
saranya
- Saranya3_d6 years agoHelper I
screenshot of pbix
- MFelix6 years agoSuper User
Hi Saranya3_d ,
You can you share a file trough onedrive, googledrive, wetransfer or similar links.
Are you abble to share a file?
- Saranya3_d6 years agoHelper I
Mflexi,
Pbix file has been placed in the below drive. Please help me to arrive the precentile.
https://1drv.ms/u/s!AryZvCsTToGkiFbVLcHPg7eaneEr
PS: I will write a query in column to change the "Overall MTTR in Hours" into "HH:MM:SS" format. All the data's are available in the single table like Priority, Ticket ID (unique filed), Ovearll MTTR in hours, overall mttr in min, created and resolved time.
Thanks,
Saranya