Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
Can someone explain how we can make conditional expression or conditional dimensions in qlik sense . for example we have a table in which we are showing Product wise sales like in below table -
Product | Sales qty | Sales amt | growth |
---|---|---|---|
A | 100 | 100$ | 39% |
B | 34 | 20$ | 45% |
C | 370 | 100$ | 80% |
D | 300 | 250$ | 90% |
E | 400 | 150$ | 73% |
and requirement is we have three button 'SalesQty', 'SalesAmt' and 'Growth' if we click on 'SalesQty' button then only product wise sales qty should be shown similarly for 'SalesAmt' and 'Growth' like in below table -
Product | Sales qty |
---|---|
A | 100 |
B | 34 |
C | 370 |
D | 300 |
E | 400 |
Add a Inline like this:
LOAD * INLINE [
Field
Sales qty
Sales amt
growth
];
Then Add a Table with this expression:
if(getfieldselections ( Field) = 'Sales qty', [Sales qty],
if(getfieldselections ( Field) = 'Sales amt', [Sales amt],
growth))
There you go
Regards,
MB
Hi Miguel,
Thanks for your quick response,
It will work but column label will not change dynamically , here requirement is column name also should be change according to on button clicking.
Thanks
Hey there,
This feature isn't in the newest Qlik Sense version AFAIK. You can't dynamically label the field in a simple way.
What you can do is to label the column as just 'Selected Field' and the user will understand that the field that the column has the same field as he selected in the listbox 'Field'.
Hope this helps you
Regards,
MB
Hi Miguel,
Is there any extension so that by using that extension we could achieve that things.
Regards
Dhiraj