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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
danialier
Creator III
Creator III

Show info in a bar chart based on period selection

Hello,

I have the attached QV document with a bar chart showing revenues and shipments in Y axis and period in X axis.

I want the columns (revenues or shipments) to be showed based on the period selection which is a cyclic group so I can move from Quarters to Months. When I select "month" I want the bar chart to ONLY show the bars related to revenues. However when I select "quarter" i want the bar chart to ONLY show the bars related to shipments.

How I can do that ?

Thanks,

dani


1 Solution

Accepted Solutions
maxgro
MVP
MVP

use conditional expression with this expression (month or quarter, depends on expression)

if(GetCurrentField("period")='month',1,0)

View solution in original post

5 Replies
Not applicable

Hi,

Why don't you make a group with the metrics also? If I didn't misunderstand you only want to show one metric.

Cheers!

danialier
Creator III
Creator III
Author

Hi,

Yes i just want to show ione metric based on the period selection but I don't know how to do that. I also don't know how I can do that by making a group with the metrics ?

Thanks,

dani

Not applicable

Hi,

Just drag and drop one metric to the other in chart properties->expressions tab and you will do cyclic group.

Cheers

sudeepkm
Specialist III
Specialist III

Please find the attachment.

maxgro
MVP
MVP

use conditional expression with this expression (month or quarter, depends on expression)

if(GetCurrentField("period")='month',1,0)