Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
woshua5550
Creator III
Creator III

Expression problem

Dear All

I have a table looks like this :

微信截图_20170428211539.png

I can get cities whose value is all 0 by using "=Concat(DISTINCT{<Value={0}>} City ,',')",it will return "Chongqing,Nanjing"

but how to get cities whose value is all NULL ? , I need a expression, in my case , should return  "Shanghai,Heibei"

thanks

1 Solution

Accepted Solutions
antoniotiman
Master III
Master III

Try

=Concat({<City={"=Sum(Value)=0"}>-<Value={0}>} DISTINCT City,';')

Regards,

Antonio

View solution in original post

5 Replies
sunny_talwar

May be this

=Concat(DISTINCT{<City = {"=Sum(Value) = 0"}>} City ,',')

antoniotiman
Master III
Master III

Try

=Concat({<City={"=Sum(Value)=0"}>-<Value={0}>} DISTINCT City,';')

Regards,

Antonio

sunny_talwar

Or just this to get two Cities

=Concat(DISTINCT{<City = {"=Sum(Value) = 0 and Value <> 0"}>} City ,',')

woshua5550
Creator III
Creator III
Author

Awesome 

woshua5550
Creator III
Creator III
Author

Both very nice , thx a lot