Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
has35526
Contributor III
Contributor III

Display a dimension based on user selection

I have  a table as a chart and I want show a different dimension based on user selection.

For ex: if a user picks any date before 06/30/23 I want to display dimension A otherwise Dimension B.

Labels (2)
1 Solution

Accepted Solutions
Zapparoli
Creator II
Creator II

Hi @has35526 

You can do this on your script like:

If(YourDate <= '06/30/23' , DimensionA, DimensionB) as NewDimension

Then use the NewDimension in your chart.

You can do this directly in the Chart as well, but when the user selects a value it will show "If(YourDate <= '06/30/23' , DimensionA, DimensionB)" in the selections filter.

Hope this helps

-Zapparoli

https://www.youtube.com/@ZappaAnalytics

Check my Youtube Channel for more Qlik Content
https://www.youtube.com/@ZappaAnalytics

View solution in original post

1 Reply
Zapparoli
Creator II
Creator II

Hi @has35526 

You can do this on your script like:

If(YourDate <= '06/30/23' , DimensionA, DimensionB) as NewDimension

Then use the NewDimension in your chart.

You can do this directly in the Chart as well, but when the user selects a value it will show "If(YourDate <= '06/30/23' , DimensionA, DimensionB)" in the selections filter.

Hope this helps

-Zapparoli

https://www.youtube.com/@ZappaAnalytics

Check my Youtube Channel for more Qlik Content
https://www.youtube.com/@ZappaAnalytics