Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Qlikconfused

1 Solution

Accepted Solutions
susovan
Partner - Specialist
Partner - Specialist

First all deselect the option of "Supress-Zero-Values" from presentation tab.

Capture.JPG 

Then put your requisite condition in below said expression

=if(TRAFFIC_PLACE='FOA',Sum(TOTAL{<Traffic_in={'12'}>}#_NetSales),

Sum(#_NetSales)

)

also find the attached file

Warm Regards,
Susovan

View solution in original post

14 Replies
avinashelite

Your data model has synthetic key that's why its giving wrong results.


Except the ID_WAREH column rename all the keys which share common names in the other table that will resolve the issue


Anonymous
Not applicable
Author

Thank you very much I fixed it but that doesn’t resolve my problem

i want to write something like

if TRAFFIC_PLACE=FOA  then take all  ID_WAREH and sum Net Sales

in one line. I don’t want to show results per ID_WAREH

avinashelite

you need in the front end ?


try like this

sum({<TRAFFIC_PLACE={FOA}>} [Net Sales])

Anonymous
Not applicable
Author

if i write this in expession it will bring only the sales for FOA

PrashantSangle

can you explain with sample data ??

if possible provide sample app also??

Regards,

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
avinashelite

Yup

Anonymous
Not applicable
Author

   I have this table

TRAFFIC_PLACESTORETraffic  inTicketsNet Sales
Bazaar Ag. StefanosOutlet Έδρας1528
Collective KolonakiCollective Κολωνάκι3535
Collective N. ErythreaCollective Ν.Ερυθραίας2426
Collective PsichikoCollective Ψυχικού2533
FOA-4100
GRE001Nike Γλυφάδας (Βουλιαγμένης)1028209
GRE002Nike Ψυχικού41062
GRE005Nike Κηφισιάς3752
GRE006Nike Πάτρας1216182
GRE007Nike Ν.Ερυθραίας3744

For the traffic place FOA i want to write somehow in the expresion for Tickets and Net Sales that:

if traffic place =FOA then bring me the Net Sales for ID_WAREH =(5,13,27,46)

avinashelite

Try like this

if[TRAFFIC_PLACE] ='FOA',SUM({<ID_WAREH ={5,13,27,46}>}[Net Sales]) ,SUM([Net Sales]))

Anonymous
Not applicable
Author

it doesnt work

sorry