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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Want to show a chart or a table only when a selecton is made

Hi Guys,

I am very new to qlikview. So, this might be something very basic.

I want to show a pivot table only if a selection is made( only if a Metric is selected ) .. so the expression i have is..

Sum ( {$<Metric={$(=Only(Metric))}>} YesterdayActual)

So, basically i am doing a sum of YesterdayActual and i am doing it only if one Matric is seleted.

Bear in mind that Metric is a Text Filed .

This was working for some other requirement ....

Sum({$<Year={$(=Only(Year))}>} LineSalesAmount) this was working fine....

the only difference is that 'Year' is a number filed and 'Metric' is a text field.

Please help me in this regard.

Thanks,

Vishnu



1 Solution

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

This is typically done in the on the Layout tab of the object properties and adding a "Show Conditional".expression.

For example

=GetPossibleCount(Metric) = 1

If you want to show the chart if only one Metric is possible.

Or

GetSelectedCountt(Metric) = 1

if you want to require that an actual selection was made before showing the chart.

-Rob

View solution in original post

2 Replies
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

This is typically done in the on the Layout tab of the object properties and adding a "Show Conditional".expression.

For example

=GetPossibleCount(Metric) = 1

If you want to show the chart if only one Metric is possible.

Or

GetSelectedCountt(Metric) = 1

if you want to require that an actual selection was made before showing the chart.

-Rob

Not applicable
Author

Hey Rob,

Thanks you so much. You really helped me:)

Thank you once again. I really appreciated.

Its working perfectly 🙂

Thanks you,

Vish