Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

DAX Measure to run Percentiles 25 and 75 in a set of rows grouped by weekDay and Hour

I have a table in Power BI called Registration. The table has the following columns: timestamp, weekDay, Hour, events_failed. timestamp is the timestamp column, weekDay is the name of the day in the week like "Sunday", "Monday", "Tuesday", etc. Hour has the hour of the events and Hour goes from 0 to 23. 'events_failed' column is of data type integer and hold the number of events that has failed at that Hour. However, I can have many rows in a single Hour as there are other But here is the tricky part: I want to calculate percentile 25 of every group combination of weekDay and Hour. Example: percentile 25 for all 'Tuesday' at Hour 16, and following along the same way for all combinations of weekDay & Hour. In summary, I want to write a Measure in DAX that calculate the percentile 25 of 'events_failed' for all different combinations of groups of weekDay and Hour. I want the results in a new table called Percentiles with the following columns: weekDay, Hour, Percentiles_25, Percentiles_75.

1 REPLY 1
eliasayy
Impactful Individual
Impactful Individual

Hello @Anonymous can you show a small sample of data and expected result

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors