Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Qlikers,
Is there a simple expression to calculate distinct values for many columns ?
I'm looking for the result in "Distinct phone" row
Thanks for your time and help.
max.
count(distinct pick(match($Field,'Phone1','Phone2','Phone3'),[Phone1],[Phone2],[Phone3]))
count(distinct pick(valueloop(1,3),Phone1,Phone2,Phone3))
What is the result you are expecting?
Hi Manish,
looking for result in "Distinct phone" row
Like this?
Result is good ,
but i would like not to touch my script ...
Non script way would be very complicated with if statements to check if the two columns have same value.
We have to ask Qlikview to create a special count
=countvalueline(distinct (Row1,Row2 ...) )
i found :
rangecount(expr1 [ , expr2, ... exprN ])
it's pretty much what i am looking for
but it seems that it doesn't work with Distinct
Exactly that's what the issue is.... For distinct you will need some if statements
Thanks anyway Sunny,
Let's Go for traditional IF(IF(IF(IF(IF
have a good weekend