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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
manuelbanza
Frequent Visitor

Average of Min

Hi,

 

I have this dataset for example:

HotelDayPrice
A1 €   150.00
A1 €   130.00
A1 €   200.00
B1 €   150.00
C1 €   145.00
C1 €   135.00
D1 €   200.00
D1 €   190.00
A2 €   190.00
B2 €   160.00
B2 €   120.00
C2 €   120.00
C2 €   178.00
D2 €   170.00


So for each day I have Hotels with different prices (different rooms). What I want to do is to calculate the average by hotel of their lowest rate. First calculate the MIN value for each hotel by day and then create the average of those days (in this example day 1 and 2. So then I can have a graph like this:


price.PNG

 

 

Or maybe create a column that only return the lowest price for each hotel and the other rows return 0, and then I can create an average of that column excluding zeros.

 

I have tried a lot of calculations but none of them seem to work. Can you help me with this?

 

Thank you!

 

Manuel Banza

1 ACCEPTED SOLUTION
Cesare
Regular Visitor

Try this:

 

AvgOfMin = AVERAGEX(SUMMARIZE(Table1,Table1[Day],"MinPrice",MIN(Table1[Price])),[MinPrice])
 
Note that the price needs to be Numeric.
 
Cesare

View solution in original post

3 REPLIES 3
Cesare
Regular Visitor

Try this:

 

AvgOfMin = AVERAGEX(SUMMARIZE(Table1,Table1[Day],"MinPrice",MIN(Table1[Price])),[MinPrice])
 
Note that the price needs to be Numeric.
 
Cesare

@Cesare Thank you so much it works perfectly!

 

Have a nice weekend.

 

Manuel Banza

hi @Cesare 

 

do you know I can calculate the mode of the min(Lowest price)?

 

thank you,

 

Manuel Banza

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.