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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

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
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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