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

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

Reply
SkorpionAAM
Helper V
Helper V

Add a (Code) column if Same Product ID

I have Two Table one have Records and one have Company Names in Records I have Code and Product codes where company receive the Product and then Transfer to Parcel Department where code changed and then next step will take where product status changed to Ready for Delivery than Loaded and in the end product will Delivery its last stage I need to add one more column where apply if product is same then Company Id will add and company code is on top each product where is Mention Company so that code will add in new Column with each step . thansk

Google Sheet

https://docs.google.com/spreadsheets/d/1jUElkVme4u9s_LByT6LYICsw88i-8UrVvoigwyrIw5E/edit?usp=sharing

 

icHHM.png3Zi8E.png

9 REPLIES 9
SkorpionAAM
Helper V
Helper V

?????????????

SkorpionAAM
Helper V
Helper V

??????????????

amitchandak
Super User
Super User

@SkorpionAAM , Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

Mark me @

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

r u there ??/

SkorpionAAM
Helper V
Helper V

Any one ??

SkorpionAAM
Helper V
Helper V

Almost okay but i need every Code check Google sheet OutPut should be like this (Column G) i need that output each code bcz data will come more so i need every company recordds how many HD bare code they recied and tracking check the Blue background Comun i need like this 

SkorpionAAM_1-1609356060209.png

 

 

 

Anonymous
Not applicable

Hi @SkorpionAAM ,

Could you please share  the calculation logic of Column G in your Google sheet with us in order to provide you a suitable formula? It equals to the access code with oldest date in same [HD Barre Code]? Which conditions need to satisfy when obtain column G value?

Best Regards

amitchandak
Super User
Super User

@SkorpionAAM , based on what I got, Try a new column in DAX( Not power Query)

 

New column =
var _min = minx(filter(Table, [Hd Barre Code] = earlier([Hd Barre Code])), [submission Date])
return
maxx(filter(Table, [Hd Barre Code] = earlier([Hd Barre Code]) && [submission Date]=_min), [Enter your Access Code])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.