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
Anonymous
Not applicable

Calculate difference between Min. & Max

Hi all,

 

I have a dataset that shows orderlines per row. Similar to this table:

Item no.

RevenueQuantitySales Price Column
Item110110
Item12438

 

I am trying to create a visual table that shows Min. Max, Avg Price and the dif. between Min & Max.

kolovez_1-1626952287620.png

 

 

Question / Help Request:

I can easily create the Min. Max and Avg. Sales Price, but I can't create the formula for dif. between Min. and Max.? anyone can help?

It needs to evaluate the row with the minimum sales price for a specific item and compare it to the same item just on the row with highest sales price.

Dif. between Min. Max = "Maximum Sales Price - the Minimum Sales Price" 

 

 

I already have the Sales Price Column, so i just use the inbuilt function for Min. and Max Sales Price:

kolovez_0-1626952128075.png

For the Avg. Sales Price i use this calculation:

 

Avg. Sales Price = SUM(InitiativeMonitor_table[Turnover (DKK)])/SUM(InitiativeMonitor_table[Qty])

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

just figured out it was utterly simple. haha

 

Min. SP = MIN(InitiativeMonitor_table[Sales Price DKK column])
Max SP = MAX(InitiativeMonitor_table[Sales Price DKK column])
Min. Max SP dif. = [Max SP]-[Min. SP]

View solution in original post

1 REPLY 1
Anonymous
Not applicable

just figured out it was utterly simple. haha

 

Min. SP = MIN(InitiativeMonitor_table[Sales Price DKK column])
Max SP = MAX(InitiativeMonitor_table[Sales Price DKK column])
Min. Max SP dif. = [Max SP]-[Min. SP]

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.