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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Silver
New Member

Percentile line on analytics

Does anyone know how they calculate the percentiles on the analytics pane?

 

I added onto my graph the 90th percentile line from the anlaytics pane but it is giving me a different value to my calculated value (=percentile.inc(,0.9)).

This is the same when I use the average line and calculate the average (=average()).

 

Does anyone know why the values are different and how I can get them the same?

 

Thanks

P.s. I do have a few filters applied on the page but when I change the filters, the calculated fields and the analytic lines change with them so I don't think thats the problem.

3 REPLIES 3
v-jiascu-msft
Employee
Employee

Hi @Silver,

 

It's the context that has the magic. You can try a measure like this. I tested it in a simple column chart. The axis is 'Calendar[Date' while the value is SUM(Sales[Quantity]). 

average171024 =
CALCULATE (
    AVERAGEX (
        SUMMARIZE ( Sales, Calender[Date], "sq", SUM ( Sales[Quantity] ) ),
        [sq]
    ),
    ALL ( 'Calender' )
)

If you need more help, please provide a sample .pbix file. 

 

Best Regards!

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I do not want to come across as rude, but that answer makes no sense and does not address the orignal issue at all. 

 

 

Best regards though!!

Thanks for the reply. I've tried your formula but it gave me a really large number.

 

Here is an example of my data:

 

Colour  Letter   Date/time                            value

red        A           2017/12/12  01:00:00         2

blue      A           2017/12/12   01:00:00         5

red        A          2017/12/12    12:00:00        4

green     B           2017/12/12   08:00:00       1

red        A          2017/12/12    14:00:00      6

 

My line graph would be Average of value (y axis) against date/time (x -axis) with colour and letter as filters.
so technically, I want the percentiles for red,A.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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