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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Statistical Function for calculating the Range R

Hi,

I have the table below.

I am looking for the statistical Range R.

For the rows, it is simple: Maximum - Minimum.

But how do I calculate the Range R for the total table?

The outcome of this formula must be 18 (highest vaue in the table) - 9 (lowest value in the table) = 9

Thanks!

John

 

weekday_1day_2day_3day_4day_5CountAdditionAverageMinimumMaximum
110911101055010911
21018161110565131018
310109101155010911
1 ACCEPTED SOLUTION
ribisht17
Super User
Super User

@Anonymous 

 

Step 1: 

Max = MAXX( { MAX(MaxMinTableAcross[day_1]),MAX(MaxMinTableAcross[day_2]),MAX(MaxMinTableAcross[day_3]),MAX(MaxMinTableAcross[day_4]),MAX(MaxMinTableAcross[day_5])},[Value])
 
Step 2: 
Min = MINX( { Min(MaxMinTableAcross[day_1]),Min(MaxMinTableAcross[day_2]),Min(MaxMinTableAcross[day_3]),Min(MaxMinTableAcross[day_4]),Min(MaxMinTableAcross[day_5])},[Value])
 
Step 3:
Solution = MaxMinTableAcross[Max]-MaxMinTableAcross[Min]
 
ribisht17_0-1651552357470.png

Note: Keep [Value] as it is in your calculation there

Regards,

Ritesh

Mark my post as a solution if it helped you| Munde and Kudis (Ladies and Gentlemen) I like your Kudos!! !!
My YT Channel Dancing With Data !! Connect on Linkedin !!Power BI for Tableau Users 

 

View solution in original post

2 REPLIES 2
ribisht17
Super User
Super User

@Anonymous 

 

Step 1: 

Max = MAXX( { MAX(MaxMinTableAcross[day_1]),MAX(MaxMinTableAcross[day_2]),MAX(MaxMinTableAcross[day_3]),MAX(MaxMinTableAcross[day_4]),MAX(MaxMinTableAcross[day_5])},[Value])
 
Step 2: 
Min = MINX( { Min(MaxMinTableAcross[day_1]),Min(MaxMinTableAcross[day_2]),Min(MaxMinTableAcross[day_3]),Min(MaxMinTableAcross[day_4]),Min(MaxMinTableAcross[day_5])},[Value])
 
Step 3:
Solution = MaxMinTableAcross[Max]-MaxMinTableAcross[Min]
 
ribisht17_0-1651552357470.png

Note: Keep [Value] as it is in your calculation there

Regards,

Ritesh

Mark my post as a solution if it helped you| Munde and Kudis (Ladies and Gentlemen) I like your Kudos!! !!
My YT Channel Dancing With Data !! Connect on Linkedin !!Power BI for Tableau Users 

 

Anonymous
Not applicable

hi @ribisht17 ,

Thanks, all clear!

JOhn

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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