Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I read through this solution (and many others) but it didn't help me.
Ok well....I have the solution! New expression:
if(person_sex = 'M',
count(distinct {<sex = {'M'}>}id) + sum({1}1)*0,
count(distinct {<sex = {'F'}>}id) * -1 + sum({1}1)*0)
and then under Add-ons -> Data handling I checked "Include zero values".
Whew!!
Ok well....I have the solution! New expression:
if(person_sex = 'M',
count(distinct {<sex = {'M'}>}id) + sum({1}1)*0,
count(distinct {<sex = {'F'}>}id) * -1 + sum({1}1)*0)
and then under Add-ons -> Data handling I checked "Include zero values".
Whew!!
Hi
It is not working for me, If you have a sample QVF that is working can u attach the file
thanks in advance
Sorry, I can't send my QVF file, it's internal/proprietary/whatever. Maybe I can help with your code (not your QVF)? I'm pretty new to this, but I'm catching on slowly.
Hello,
I applied this to my QSense. (+ sum({1}1)*0) as following:
if((Count(Workbook)/Count(DISTINCT(User))+ sum({1}1)*0) > 0, Count(Workbook)/Count(DISTINCT(User)), 0)
This expression shows me the average visits on Workbooks, and If there's no visits, it shows 0. However, the chart is not affected by filters. I can't filter by month, or by other measures.
Thanks
This is true, by this method, it is not affected by any other filter selection. Do you know any solution to this? @danmcm Thanks in advance 🙂
Sorry, I no longer have a license for Qlik, so I cannot test that code. But my solution did work and filtered as expected.
-dan