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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Tdawg90
Employee
Employee

How to create percentiles for pre-aggregated data with 'TotalTime', and a 'UnitCount'

Hi, 

We do a fair amount of aggregation prior to pulling it into power bi.  

 

The data table looks something along the lines of 

ReportDatePivot FieldPivot fieldUnitCountTotalTime
7/15/2021ba23455
7/15/2021aa122148
7/16/2021sd1221
7/17/2021dd454
7/17/2021ds446

 

 

 

 

I have a Measure to report on the average

 

Avg Minutes = SUM([TotalTime]) / SUM([UnitCount])

 

 

 

and a few percentiles

 

80th Percentile Avg Time = PERCENTILEX.EXC(myTable, [Avg Minutes], .80)
80th PercentileTime = PERCENTILE.EXC(myTable[TotalTime], 0.8)

 

 

 

However I need the percentiles to leverage the unit counts, rather than, I think it's using the row count?

 

Can this be done directly utilizing these methods?

1 REPLY 1
v-yangliu-msft
Community Support
Community Support

Hi  @Tdawg90 ,

 

Can you describe your expected result through your sample data.

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.