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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

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
May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.