Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Good Afternoon,
I am trying to create the following table using DAX:
| ID | Index | Value | Pitch | Result |
| 1 | 1 | 2 | 2 | 2 |
| 1 | 2 | 4 | 2 | 4 |
| 1 | 3 | 6 | 2 | 6 |
| 2 | 1 | 5 | 3 | 3 |
| 2 | 2 | 7 | 3 | 6 |
| 2 | 3 | 9 | 3 | 9 |
Result is a calculated column with the following formula when grouped by ID:
Pitch = Value / Index <- for the row with the max value per ID.
Result = Index * Pitch
What is the best way to calculate the Pitch column?
Thank you for your assistance
Solved! Go to Solution.
Hi @thomas_pike
Please do the following https://we.tl/t-JYIy6UCpSM
Pitch =
VAR CurrentIDTable =
CALCULATETABLE ( Data, ALLEXCEPT ( Data, Data[ID] ) )
VAR LastIndexRecord =
TOPN ( 1, CurrentIDTable, Data[Index] )
VAR LastIndex =
MAXX ( LastIndexRecord, Data[Index] )
VAR LastValue =
MAXX ( LastIndexRecord, Data[Value] )
RETURN
LastValue / LastIndexResult = Data[Index] * Data[Pitch]
Hi @thomas_pike
Please do the following https://we.tl/t-JYIy6UCpSM
Pitch =
VAR CurrentIDTable =
CALCULATETABLE ( Data, ALLEXCEPT ( Data, Data[ID] ) )
VAR LastIndexRecord =
TOPN ( 1, CurrentIDTable, Data[Index] )
VAR LastIndex =
MAXX ( LastIndexRecord, Data[Index] )
VAR LastValue =
MAXX ( LastIndexRecord, Data[Value] )
RETURN
LastValue / LastIndexResult = Data[Index] * Data[Pitch]
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 7 | |
| 5 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 19 | |
| 10 | |
| 6 | |
| 6 | |
| 5 |