cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Anonymous
Not applicable

## Unsupported percentile

Hi community!

I'm trying to calculate how much data megabyte use include the top 20% users/account.

I have a table with all kinds of data_MB values in one column, and to calculate the 80th precentile I did:

This measure brought me a value of 1136. Since I need to compare what values are above 1136 in the data_MB column, I calculated an IF-statement to see what accounts use more than 1136 MB, see picture in the DAX-bar. But when putting that value into the table it gives me an error as shown in the picture. Does anyone know how to solve this problem?

When doing an IF-statement without the percentile formula, see picture below, the table works.

Also, when removing the accountid from the table the original IF-statement works. Could it mabye be a dimention thing?

Many thanks,

Alice

1 ACCEPTED SOLUTION
Community Support

Hi @Anonymous

Your current [Perc] is a measure right? If so, it should be calculated on the whole table rather than on every accountid. When you add accountid column to the table visual, the [Perc] is evaluated for every acountid so it couldn't return the correct result. Instead, you can try the following measure

``````test =
IF (
SUM ( 'table'[data_MB] ) > CALCULATE ( [Perc], ALLSELECTED ( 'Table' ) ),
1,
0
)
``````

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

3 REPLIES 3
Community Support

Hi @Anonymous

Your current [Perc] is a measure right? If so, it should be calculated on the whole table rather than on every accountid. When you add accountid column to the table visual, the [Perc] is evaluated for every acountid so it couldn't return the correct result. Instead, you can try the following measure

``````test =
IF (
SUM ( 'table'[data_MB] ) > CALCULATE ( [Perc], ALLSELECTED ( 'Table' ) ),
1,
0
)
``````

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

Anonymous
Not applicable

Hi again!

It works, thank you so much for your help 🙂

Best regards,

Alice

Takk du!

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

#### Power BI Monthly Update - August 2024

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

#### Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

#### Fabric Community Update - September 2024

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

Top Solution Authors
Top Kudoed Authors