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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello!
I have a table that has the following structure:
| ID | DAYS |
| AAA | 3 |
| AAA | 3 |
| AAA | 5 |
| BBB | 7 |
| BBB | 7 |
| CCC | 1 |
| DDD | 9 |
| DDD | 1 |
I want to create a new column that shows only the highest value of the DAYS column for each ID. The expected result would be like this:
| ID | DAYS | NEW_COLUMN |
| AAA | 3 | 5 |
| AAA | 3 | 5 |
| AAA | 5 | 5 |
| BBB | 7 | 7 |
| BBB | 7 | 7 |
| CCC | 1 | 1 |
| DDD | 9 | 9 |
| DDD | 1 | 9 |
How can I do this?
Solved! Go to Solution.
Hi @nok ,
Create a new column in your table with this DAX formula:
NEW_COLUMN =
CALCULATE(
MAX('Table'[DAYS]),
ALLEXCEPT('Table', 'Table'[ID])
)
If this reply help you, please consider as solution and please give a kudo.
Thank you
Hi @nok ,
Create a new column in your table with this DAX formula:
NEW_COLUMN =
CALCULATE(
MAX('Table'[DAYS]),
ALLEXCEPT('Table', 'Table'[ID])
)
If this reply help you, please consider as solution and please give a kudo.
Thank you
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 46 | |
| 42 | |
| 23 | |
| 18 |
| User | Count |
|---|---|
| 193 | |
| 123 | |
| 99 | |
| 67 | |
| 49 |