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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
ashmitp869
Creator II
Creator II

Need help to write an expression ?

Hi All,

Please kindly see the image attached.

Capture.PNG

The Non User calculation is done in second chart -

if([No. of Policy Users Sold]= 0,[Open Users]-[No. of Policy Users Sold],0)

so , if no policy sold then non user is [open user] - [no.of policy sold]

the second chart is working correctly as there is dimension Dealership in the chart .

But , for the first chart ,

there is no dealership dimension . Thus the Non user is not working correctly .

if I used the expression -

if([No. of Policy Users Sold]= 0,[Open Users]-[No. of Policy Users Sold],0) the result is showing 0 as there are not breaks down in dealership dimension.

Please assist me in writing the expression.

Many Thanks,

2 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Try this.

Sum( Aggr(if([No. of Policy Users Sold]= 0,[Open Users]-[No. of Policy Users Sold],0),Delearship))


Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
shiveshsingh
Master
Master

Hi

plz try this in calculated dimension

Aggr(if([No. of Policy Users Sold]= 0,[Open Users]-[No. of Policy Users Sold],0),Delearship)