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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
paulwalker
Creator III
Creator III

Group by not working in Value list

Hi Community,

I am facing problem with AGGR in value list size and expression.

First chart I am manually passing values based on ID and second chart based on ID field is working fine (AGGR works fine in second chart as I have dimension)

In my scenario I need to calculate and sum each ID level so that the value is 1.50

This 1.50 value should be shown in the first chart in the highlighted cell,  I am trying to apply the same expression in the first chart but it is not working.

Expression: In the first chart my expression is as follows, that's why it's not working

IF(LIST=1, Exp1+Exp2,
IF(LIST=2, Exp1,
IF(LIST=3, Exp2)))

paulwalker_0-1682609361817.png

PFA,  (I have applied selection in attached file)

Thanks in Advance!

 

 

Labels (1)
6 Replies
paulwalker
Creator III
Creator III
Author

@tresesco  and All, Any suggestions would be appreciated

Chanty4u
MVP
MVP

Try this 

IF(SUM(Exp1 + Exp2) >= 1.5, 1.5, SUM(Exp1 + Exp2))

 

To use this expression in your first chart, you can replace your current expression with the new one

 

IF(LIST=1, IF(SUM(Exp1 + Exp2) >= 1.5, 1.5, SUM(Exp1 + Exp2)),

IF(LIST=2, Exp1,

IF(LIST=3, Exp2)))

 

paulwalker
Creator III
Creator III
Author

based on selection that should change, that's just an example

paulwalker
Creator III
Creator III
Author

Experts, can you please have a look once.

vinieme12
Champion III
Champion III

Add the TOTAL keyword, refer below

 

=IF(LIST=1, Count(DISTINCT position_number)+Sum(AGGR(1-(1/COUNT(DIStINct SubField([Covered. ES Name],','))),unix_id)),
IF(LIST=2, Count(DISTINCT position_number),
IF(LIST=3, Sum(TOTAL AGGR(1-(1/COUNT(DIStINct SubField([Covered. ES Name],','))),unix_id)))))

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
tresesco
MVP
MVP

@paulwalker , I can't open your qvw file anymore (#qlik - MVP license has expired). However, if I take from your subject line - you are using valuelist() in dimension; if that is the case - let me tell you that qlik synthetic dimension (created by valuelist(), valueloop() ) - doesn't respond to selection. What you can instead try with is creating a island dimension in the script and use that as the dimension.