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 dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi
I am trying to create a column " Eligible"using dax. I have lead ID column in my table. If this column contains duplicate lead is then 1 St captured lead id should be eligible and other should be in eligible.for example if ID 4566 repeated 3 times ID 4566- eligible
ID 4566- Ineligible
ID 4566 - Ineligible
Can anyone advice me on this issue. Thanks !
HI,
I am not sure if I understood your question correctly, but I assume your table has a kind of INDEX column that defines which one is the first one and which ones are not the first one.
Please check the below picture and the attached pbix file.
Expected result CC =
VAR _firstindex =
MAXX (
INDEX (
1,
SUMMARIZE ( Data, Data[Lead ID], Data[Index] ),
ORDERBY ( Data[Index], ASC ),
KEEP,
PARTITIONBY ( Data[Lead ID] )
),
Data[Index]
)
RETURN
IF ( Data[Index] = _firstindex, "Eligible", "Ineligible" )
Hi jihwan,
Thank you so much for your support, DAX is working properly. Could you please help to combine two more condition in above DAX,
1. When payout in local currency =0 and payout in USD = 0 then " ineligible Emp not found"
2.when lead id " L/CR-000000000" or lead id =L/CR - 00000001 then ineligible, duplicate customer
Else eligible
Hi,
Please share your sample pbix file's link.
Thank you.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
23 | |
11 | |
10 | |
9 | |
8 |