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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Nagaraju_KCS
Specialist III
Specialist III

Hide and show

Hi Community,

I am doing Gender Distribution,

Suppose If i have more than F percentage i want to show one Image..

If i have more than M percentage i want to show Different Image..


How to write hide and show conditions for 2 Images based on Gender Percentage..????

Thanks in Advance..

Labels (1)
1 Solution

Accepted Solutions
tamilarasu
Champion
Champion

Hi,

You can use conditional hide in this case.

Male Expression

=Count({<genger={'M'}>}ID)/Count(TOTAL ID)*100>Count({<genger={'F'}>}ID)/Count(TOTAL ID)*100

Female Expression

=Count({<genger={'M'}>}ID)/Count(TOTAL ID)*100<Count({<genger={'F'}>}ID)/Count(TOTAL ID)*100

Edit: If the male and female percentage is equal, the above expression will not show any images. To avoid that replace less than and greater than symbols as <= and >= in above expressions. You can see both the images () whenever the percentage is equal.

View solution in original post

2 Replies
tamilarasu
Champion
Champion

Hi,

You can use conditional hide in this case.

Male Expression

=Count({<genger={'M'}>}ID)/Count(TOTAL ID)*100>Count({<genger={'F'}>}ID)/Count(TOTAL ID)*100

Female Expression

=Count({<genger={'M'}>}ID)/Count(TOTAL ID)*100<Count({<genger={'F'}>}ID)/Count(TOTAL ID)*100

Edit: If the male and female percentage is equal, the above expression will not show any images. To avoid that replace less than and greater than symbols as <= and >= in above expressions. You can see both the images () whenever the percentage is equal.

MayilVahanan

HI

PFA

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.