Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance 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 |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
12 | |
11 | |
7 | |
6 |