The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
hi,
I have a table that has duplicate records (CAK) I would like to group by (CAK) and the STATUS field bring the "P", is there any way?
thanks
Solved! Go to Solution.
Hi @Spotto ,
Can you enter the power query editor? It's easier to complete in power query.
1.Right-click the CAK column and select Group by.
2.Operation select All Rows.
3.Add a custom column.
= Table.FillDown([Count],{"STATUS"})
4.Remove the Count column, and expand the custom column.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Spotto ,
Can you enter the power query editor? It's easier to complete in power query.
1.Right-click the CAK column and select Group by.
2.Operation select All Rows.
3.Add a custom column.
= Table.FillDown([Count],{"STATUS"})
4.Remove the Count column, and expand the custom column.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Spotto
Try this code to create a new Column with DAX:
New Column =
IF (
ISBLANK ( [CAK] ),
CALCULATE (
MAX ( [STATUS] ),
FILTER ( ALL ( table ), [CAK] = EARLIER ( [CAK] ) )
),
[STATUS]
)
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
User | Count |
---|---|
28 | |
12 | |
8 | |
7 | |
5 |
User | Count |
---|---|
34 | |
15 | |
12 | |
7 | |
6 |