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

Create row calculations

Hello,

 

Below I have a table 'PowerBI Table' which is a table I am able to create in PowerBI Desktop. What I need to create is the 'New Table' below which is just calculating the min and max of Test 1, Test 2 etc.. 

 

How can I create a table like below where the min and max calculations are in the row and will apply to any columns I add?

 

 

PowerBI Table       
        
ClientTest 1Test 2 Test 3Test 4Test 5Test 6Test 7
Zach13.25129.75226.5059.5179.542.75
George21195.7521332575.7539
Tiffany48.5156.75144.2510.573.75139.2537.75
Michael51.2581.591.52951.7589.5125
        
        
        
New Table       
        
MeasureTest 1Test 2 Test 3Test 4Test 5Test 6Test 7
min13.2581.591.502575.7537.75
max51.25195.75226.52973.75179.5125
        
2 REPLIES 2
v-xuding-msft
Community Support
Community Support

Hi @Anonymous ,

The calculation in Power BI is for columns rather than rows. So, for your requirement, you need to calculate minimum values per Test columns. Do you just want to show the results of New Table in Matrix or Table visuals?

 

Best Regards,

Xue Ding

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
amitchandak
Super User
Super User

I do not think there is a direct way. if test1 , test2 .. are Measure or columns

union(
summarize(table,"Measure","Min","Test1",min(table[Test1]),"Test2",min(table[Test2]),"Test3",min(table[Test3]))
summarize(table,"Measure","Max","Test1",max(table[Test1]),"Test2",max(table[Test2]),"Test3",max(table[Test3]))
)

 

If they are dimension values

Min = min(table[value])

Max =max(table[value])

 

There is a property Show on rows. which will move all measures in rows. And put your Dimension member in col

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution.
In case it does not help, please provide additional information and mark me with @

Thanks. My Recent Blog -Decoding Direct Query - Time Intelligence , Winner Coloring on MAP , >HR Analytics , Power BI Working with Non-Standard TimeAnd Comparing Data Across Date Ranges
Connect on Linkedin

 

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.