Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

First Occurrence of Value as a Custom Column

What would be the equivalent of the following DAX in Power Query...I am trying to bring the First Occurence Check column info into another table but the relationship between table A and table B is many to many and the i have multiple occurance of the SO Order Number. I only want from Table A where the First Occurence Check is 1 in table B. 

 

I cannot measure the two table as its a calculated column in Table A.


First Occurence Check = if (calculate (COUNTROWS(NEWBI_COMPS),filter(ALLEXCEPT(NEWBI_COMPS,NEWBI_COMPS[SO]),NEWBI_COMPS[Index]<=earlier(NEWBI_COMPS[Index])))>1,0,1) 

1 ACCEPTED SOLUTION
Anonymous
Not applicable
2 REPLIES 2
jennratten
Super User
Super User

Without any details for your data it's difficult to help.  Have you tried any of the recommended solutions based on your question?  

 

jennratten_0-1644950549314.png

 

Anonymous
Not applicable

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors