Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Match Column Data and get Value

AB
1100
299
398
1001
1010

I have this table.

I want to set B value ,If my value equals A .

For example ;

C = 1        =>   100

C=100      =>    1  

in my pivot table.

Have nice a day.

20 Replies
jyothish8807
Master II
Master II

Hi Murat,

Try doing mapping load.

tab1:

mapping load

A,

B

resident.

In your table:

load *,

applymap('tab1',sum(Quantity)) as B

resident <>.

Then use this field.

Regards

KC

Best Regards,
KC
sunny_talwar

This?

Capture.PNG

Expression: =If(Sum(Quantity) > 120, 0, Only(Aggr(If(A = Sum(Quantity), B), CustomerID, A, B)))


Update: Although the solution is working, I don't recommend this as this Aggr() function can take a lot of your system resources for a bigger data set. The same can be done in script which might take some time to run in the script, but will not affect your front end.

Not applicable
Author

Thank you so much  Sunny

dimesion : Grup

first exp: Vade =>   Sum({<Rapor={"Satış"},VadeHesapla={"1"}>}VadeEurPuan) / Sum({<Rapor={"Satış"},VadeHesapla={"1"}>}Eur)

second exp:  If("Vade" > 120, 0, Only(Aggr(If(A = "Vade", B), Grup, A, B)))

I try this but not work only works    "Vade" > 120, 0,

Why not workıng this part     Only(Aggr(If(A = "Vade", B), Grup, A, B)))

Not applicable
Author

I want to set in expression.

Thank you so much for your interest

sunny_talwar

I don't think expression name will work here, you will have to use the whole expression within Aggr:

If("Vade" > 120, 0, Only(Aggr(If(A = Sum({<Rapor={"Satış"},VadeHesapla={"1"}>}VadeEurPuan) / Sum({<Rapor={"Satış"},VadeHesapla={"1"}>}Eur), B), Grup, A, B)))

Not applicable
Author

Thank you Sunny. My problem is extension of number. I used ceil and fixed.

sunny_talwar

Not sure I understand, what do you mean by extension?

Not applicable
Author

I am sorry , I mean my number was float so I changed integer and it works.

sunny_talwar

So all is working now?

Not applicable
Author

Yes, All  works now.