Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
qv_testing
Specialist II
Specialist II

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..

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.