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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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.


Follow on LinkedIn
@ 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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.