Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

expression for the following scenario

I need to get the same supplier group for the common Global supplier id

Gloabal supplier id  , ncr,         scar,      partnumber ,           supplier group

ew-000891              234            145          ahaas652            CMDS

ew-000891               12                3          fa                         -

ew-000891                 -              -                -                       -

Please find screen shot.

issues.PNG.png

For that same global supplier id i need to CMDS as supplier group for the remaining two records

1 Solution

Accepted Solutions
maxgro
MVP
MVP

try this

MaxString(TOTAL <[Gloabal supplier id]> [supplier group])

Clipboard01.jpg

View solution in original post

11 Replies
Anonymous
Not applicable
Author

Hi

How about first doing a mapping load :

SupplierGroupMap :

Mapping Load distinct

[Gloabal supplier id] ,

[supplier group]

from ............ your datasource

;


Then when you load your real data something like :


Load

ApplyMap ( 'SupplierGroupMap' , [Gloabal supplier id] )     as [Supplier Group from AppyMap] ,

*

from ............ your datasource

;

Best Regards,     Bill



Not applicable
Author

Need to do on UI

Anonymous
Not applicable
Author

Why ?

Not applicable
Author

I cant change the script now i can only have expression for that..

Thanks in advance

Colin-Albert

Bill's answer is correct. Don't try and fix an incorrect data model by bodging the chart. Get the correct data model and the chart is simple.

maxgro
MVP
MVP

try this

MaxString(TOTAL <[Gloabal supplier id]> [supplier group])

Clipboard01.jpg

Anonymous
Not applicable
Author

write a calculated dimension instead,

= if(Global supplier id= 'ew-000891', 'CMDS', ' ' )

Not applicable
Author

thanks, i have many global supplier id's .That's the issue

preminqlik
Specialist II
Specialist II

here u go :

MaxString(TOTAL <[Gloabal supplier id]> [supplier group])