Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
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 | |||||||
Client | Test 1 | Test 2 | Test 3 | Test 4 | Test 5 | Test 6 | Test 7 |
Zach | 13.25 | 129.75 | 226.5 | 0 | 59.5 | 179.5 | 42.75 |
George | 21 | 195.75 | 213 | 3 | 25 | 75.75 | 39 |
Tiffany | 48.5 | 156.75 | 144.25 | 10.5 | 73.75 | 139.25 | 37.75 |
Michael | 51.25 | 81.5 | 91.5 | 29 | 51.75 | 89.5 | 125 |
New Table | |||||||
Measure | Test 1 | Test 2 | Test 3 | Test 4 | Test 5 | Test 6 | Test 7 |
min | 13.25 | 81.5 | 91.5 | 0 | 25 | 75.75 | 37.75 |
max | 51.25 | 195.75 | 226.5 | 29 | 73.75 | 179.5 | 125 |
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.
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
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
65 |
User | Count |
---|---|
135 | |
117 | |
101 | |
71 | |
61 |