Forum Discussion
Chandrashekar
3 years agoResolver III
First Occurrence : Duplicate
Hello, How to get first occurrence from duplicate based on multi conditions. Regards, Chandrashekar B
Jihwan_Kim
3 years agoSuper User
Hi,
I do not know what is your expected outcome and how your data model looks like, but I tried to create a sample like below.
Please check the below picture and the attahced pbix file.
It is for creating a new column.
First occurrence flag CC =
IF (
Data[Index]
= MINX (
FILTER ( Data, Data[Category] = EARLIER ( Data[Category] ) ),
Data[Index]
),
"FLAG"
)- Chandrashekar3 years agoResolver III
Hello,
Thanks for the solution. However I need based on mutli condition(Attached)
File: Sample Data
Regards,
Chandrashekar B
- Chandrashekar3 years agoResolver III
Hello,
I want to add one more condition i.e. field(2nd Condition) = 1 to existing dax.
May I know how to do it.
Regards,
Chandrashekar B
- Chandrashekar3 years agoResolver III
Hello,
Can I add one more condition in Dax formula. i.e. field(2nd Condition) = 1
First occurrence flag CC = IF ( Data[Index] = MINX ( FILTER ( Data, Data[Category] = EARLIER ( Data[Category] ) ), Data[Index] ), "FLAG" )Regards,
Chandrashekar B