Hello,
I am not new to excel but pretty new to PowerPivot and DAX. This particular project requires a powerpivot.
In powerpivot i have a table called PRODUCTS with two columns [CODEPROD] and [QUANTITY] there i created a new column [NEWCODES] and ran all my records to modify certain product codes that end with 3 letters "HDG" than i take off "HDG" and repalced with "G" . For example RR-WT-5T-HDG ends up RR-WT-5TG . I do this with this formula (may be a little crude but does the job)
=IF(RIGHT([CODEPROD], 3)="HDG", LEFT([CODEPROD], FIND("G", [CODEPROD])-4)&"G", "")
NOW THE CHALLENGING PART:
I need to find the stock quantity for the newly created products RR-WT-5TG in a new column[NEWCODES]. In other words match the record from [NEWCODES] with [CODEPROD] and give me the value of [QUANTITY]
I am trying different options with LOOKUPVALUE but nothings seems to work.
Any ideas will be highly appreciated.
Thank you, Nick
I am not new to excel but pretty new to PowerPivot and DAX. This particular project requires a powerpivot.
In powerpivot i have a table called PRODUCTS with two columns [CODEPROD] and [QUANTITY] there i created a new column [NEWCODES] and ran all my records to modify certain product codes that end with 3 letters "HDG" than i take off "HDG" and repalced with "G" . For example RR-WT-5T-HDG ends up RR-WT-5TG . I do this with this formula (may be a little crude but does the job)
=IF(RIGHT([CODEPROD], 3)="HDG", LEFT([CODEPROD], FIND("G", [CODEPROD])-4)&"G", "")
NOW THE CHALLENGING PART:
I need to find the stock quantity for the newly created products RR-WT-5TG in a new column[NEWCODES]. In other words match the record from [NEWCODES] with [CODEPROD] and give me the value of [QUANTITY]
I am trying different options with LOOKUPVALUE but nothings seems to work.
Any ideas will be highly appreciated.
Thank you, Nick