Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello Qlik Experts,
Please can someone let me know how to achieve the below output in qliksense pivot table.
Country | state | product | sales |
---|---|---|---|
USA | CA | APPLE | 10 |
USA | NJ | APPLE | 20 |
USA | MO | APPLE | 30 |
USA | SC | SAMSUNG | 40 |
USA | IL | SAMSUNG | 50 |
USA | KY | SAMSUNG | 60 |
Product Selected: Apple
Expected output;
Country | state | sum(sales) |
---|---|---|
USA | CA | 10 |
USA | NJ | 20 |
USA | MO | 30 |
USA | SC | NULL |
USA | IL | NULL |
USA | KY | NULL |
Thanks,
Anil Danda
Isn't this the regular behavior when you have checked 'Include Zero Values' under Data Handling?
I have checked the include zero values option but i still didn't get the expected output.
Try this expression
Sum(sales) + Sum({1} 0)
Try
=IF((sum(sales)-sum({1}0))=0,'NULL',sum(sales)-sum({1}0))