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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Generating measure/calculated column to take specific form of average

Hello. My question relates to a function to generate an average. Basically...

 

I have a dataset with ~4000 records. Each record has a number or value associated with it. These values typically range from 25-150, and are whole numbers with repeated incidence of each number (i.e. there could be 150 records with a value of '72'.).

 

I am trying to designate the bottom 5% and bottom 6-10% of the values with a note or flag. Normally, I would create an If() type statement. However, I need to make sure that the records that are the same number do not overlap into both categories. For example, the bottom 5% (~200 records) of values may range from 25-43, but there may be some values of 43 that also fall in the bottom 6%. However, I would need to ensure that all values of 43, in this case, are designated as part of the bottom 5%.

 

What kind of measure or calculated column could I create to solve this problem? I will be updating the data on a routine basis, so ideally this would be some type of calculated column that could refresh each time new data is entered into the report.

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous ,

Can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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