cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
CJ_96601
Helper V
Helper V

Maximum and Average

Measure to get the maximum amount for each BN and then average the maximum amount.

 

Below is the sample data for reference.

 

BNAMOUNT
11000
12000
13000
21000
32000
43000
23000
34000
44000
1500
33500
54500

 

Appreciate your help.

2 ACCEPTED SOLUTIONS
PC2790
Community Champion
Community Champion

I think you are looking for this:

Average of Max values as per BN = AVERAGEX(SUMMARIZE(BNTable,BNTable[BN],"MaxBN",MAX(BNTable[AMOUNT])),[MaxBN])

It gives an outcome of 3700 with the given data.

 

View solution in original post

PC2790
Community Champion
Community Champion

You can visualise it like this:

PC2790_0-1650610191099.png

 

View solution in original post

5 REPLIES 5
PC2790
Community Champion
Community Champion

I think you are looking for this:

Average of Max values as per BN = AVERAGEX(SUMMARIZE(BNTable,BNTable[BN],"MaxBN",MAX(BNTable[AMOUNT])),[MaxBN])

It gives an outcome of 3700 with the given data.

 

Thanks. 

this is the result i was looking for.

Now, what if i would like to get with code "BS" only.

Below sample refer.

 

BNAMOUNTCode
11000BS
12000BS
13000H
21000BS
32000BS
43000BS
23000H
34000BS
44000BS
1500BS
33500H
54500BS
nasolme
Helper I
Helper I

Hi !

average = AVERAGE('Table'[amount])
max = max('Table'[amount])
Capture d’écran 2022-04-19 125838.jpg

 

Thanks.  But this is the result i expect.

 

 

13000
23000
34000
44000
54500
  
Average3700
PC2790
Community Champion
Community Champion

You can visualise it like this:

PC2790_0-1650610191099.png

 

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors