Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Dear All,
Experts - @Ahmedx ,@amitchandak ,@v-tangjie-msft ,Greg_Deckler,@Greg_Deckler,@v-stephen-msft
Need a custom colum as per requirment.
Group by ID, cosnider Current value of Maximum Serial number and assign to all the rows of that particular group.
For AA group maximum serial number is 10 its Current value os 30Y0202, now assign 30Y0202 all the rows of AA in new column.
Serial Number | Previous | Current | Group ID | latest Part |
1 | 30Y1664 | AA | 30Y0202 | |
2 | 30Y0140 | AB | 30Y0140 | |
3 | 30Y0140 | 30Y0140 | AB | 30Y0140 |
4 | 30Y0140 | 30Y0140 | AB | 30Y0140 |
5 | 30Y0148 | 30Y0148 | AC | 30Y0148 |
6 | 30Y1664 | 30Y1664 | AA | 30Y0202 |
7 | 30Y1664 | 30Y0202 | AA | 30Y0202 |
8 | 30Y1664 | 30Y0202 | AA | 30Y0202 |
9 | 30Y1664 | 30Y0202 | AA | 30Y0202 |
10 | 30Y1664 | 30Y0202 | AA | 30Y0202 |
Solved! Go to Solution.
Hi @tangutoori ,
You can use the code below to create a Calculated Column to get the expect result (please adjust the code as you need):
Max Current =
VAR GroupId = 'Table'[Group ID]
VAR MaxSerialNumber =
CALCULATE(
MAX('Table'[Serial Number]),
FILTER('Table', 'Table'[Group ID] = GroupId)
)
RETURN
CALCULATE(
MAX('Table'[Current]),
FILTER('Table', 'Table'[Serial Number] = MaxSerialNumber)
)
Hope this answer solves your problem!
If you need any additional help please @ me in your reply.
If my reply provided you with a solution, please consider marking it as a solution ✔️or giving it a kudoe 👍
Thanks!
Best regards,
Joao Ribeiro
Thank You.
Hi @tangutoori ,
You can use the code below to create a Calculated Column to get the expect result (please adjust the code as you need):
Max Current =
VAR GroupId = 'Table'[Group ID]
VAR MaxSerialNumber =
CALCULATE(
MAX('Table'[Serial Number]),
FILTER('Table', 'Table'[Group ID] = GroupId)
)
RETURN
CALCULATE(
MAX('Table'[Current]),
FILTER('Table', 'Table'[Serial Number] = MaxSerialNumber)
)
Hope this answer solves your problem!
If you need any additional help please @ me in your reply.
If my reply provided you with a solution, please consider marking it as a solution ✔️or giving it a kudoe 👍
Thanks!
Best regards,
Joao Ribeiro
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
119 | |
78 | |
58 | |
52 | |
48 |
User | Count |
---|---|
170 | |
117 | |
63 | |
58 | |
51 |