Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Say you have a table like the below where max margin and min margin represent the max and min of margin within the existing table:
| Country | Margin | Max Margin | Min Margin |
| Germany | 50 | 80 | 40 |
| UK | 70 | 80 | 40 |
| USA | 80 | 80 | 40 |
| Japan | 55 | 80 | 40 |
| China | 40 | 80 | 40 |
Is there a way to allow users to create some kind of grouping, like the "Region" column below, where max and min margin now calculate within the group?
| Country | Region | Margin | Max Margin | Min Margin |
| Germany | 1 | 50 | 70 | 50 |
| UK | 1 | 70 | 70 | 50 |
| USA | 2 | 80 | 80 | 80 |
| Japan | 3 | 55 | 55 | 40 |
| China | 3 | 40 | 55 | 40 |
I probably should've been more clear, the Region grouping does not exist in the source data. They want to be able to assign the groupings on their own and then have the calculations change.
@Anonymous
Unfortunately, Power Bi does no have artificial intelligence features at least for now.
Hi,
Please check the below picture and the attached pbix file.
It is for creating new columns in the table.
Max Margin=CALCULATE(MAX(Table[Margin]),ALL(Table[Country]))
Min Margin=CALCULATE(MIN(Table[Margin]),ALL(Table[Country]))
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 9 | |
| 6 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 22 | |
| 14 | |
| 10 | |
| 6 | |
| 5 |