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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
8125551478
Frequent Visitor

Sum of Min , Avg and Max Values

Input Data

 

Country

State

Sales Amount

India

Hyderabad

150014

India

Delhi

185405

India

Mumbai

220796

US

Georgia

125405

US

Mexico

145405

US

New York

165405

UK

England

120245

UK

Scotland

169875

UK

Ireland

168472

 

Problem Statement: (New Measure / New Column)

Sum of Minimum sales of country =

Sum of Max sales of country =

Sum of Average sales of country =

 

Visual output =

Show Measure values as per slicer selection.

Slicer Selection:

India

US

UK

 

Card Output:

Min Value

Average Value

Max Value

 

 

 

2 REPLIES 2
Greg_Deckler
Super User
Super User

@8125551478 This looks like a measure aggregation problem. See my blog article about that here: https://community.powerbi.com/t5/Community-Blog/Design-Pattern-Groups-and-Super-Groups/ba-p/138149

The pattern is:
MinScoreMeasure = MINX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])
MaxScoreMeasure = MAXX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])
AvgScoreMeasure = AVERAGEX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])
etc.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Thank You , also kindly sugest the below problem statement.

 calculate % Difference  with other countys (when compair total sales of india to other counters ,How much of % difference is coming )

 

CountryStateSales Amount
IndiaHyderabad150014
IndiaDelhi185405
IndiaMumbai220796
USGeorgia125405
USMexico145405
USNew York165405
UKEngland120245
UKScotland169875
UKIreland168472

 

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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