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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Atifz
Frequent Visitor

Min and Max of aggregated table

Hi all,

 

This may seem like a really easy question but I can't seem to figure it out. I have the following calculated table in my visual and I just need to create measures to get the min and max values of the count and average columns. 

 

Group1Group2

Count of

Customers

Avg Sales
AAA125100
BBB33200
CCC567300
DDD43400

 

I need 4 measures:

Min customer count = 33

Max Customer Count = 567

Min Avg Sales = 100

Max Avg Sales = 400

 

Thanks

3 REPLIES 3
amitchandak
Super User
Super User

@Atifz , Like

 

calculate(min([count of customer]),all(Table))
calculate(max([count of customer]),all(Table))
calculate(min([Avg Sales]),all(Table))
calculate(max([Avg Sales]),all(Table))

 

all(table) can be removed or can be replaced on allselected(Table) depending on need

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

hi @amitchandak 

 

Sorry, I wasn't clear in my original post. Group1 and 2 are from different tables in the data and customer count is count of customer ID's, I don't have a customer count measure.

 

The above table was created as a visual in Power BI.

@Atifz ,Can you share sample data and sample output.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Solution Authors