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: 
Not applicable

Issue ??

Hi Team,

My Dummy data :

 

CategoryTypePartFlagValue
ALP1100
AMP2X200
AMP3300
BLP4400
BMP5X500
BMP6600
CLP7700
CLP8800
CLP9900
DMP10X1000
DMP111100
DMP121200

and My Expected Output :

 

OUTPUT
CategoryPartValue
AP2600
BP51500
CP7700
CP8800
CP9900
DP103300

  if Flag ='X' only then value  should be add up and part  colmun should have only that part  which is associated with Flag='X'  not all part and if Flag is not X then it should come as same as  dummy excel

14 Replies
Not applicable
Author

Thank you so much Gysbert Wassenaar its working fine now.,.,

In addition of this one small requirement i need.

If i select part which does not have flag value it should show zero value and if i select part which have flag value  'X'

should show value as addition of part associated with same category

Eg:

If i Select P1 (Flag=' ')should show 0 value and if i select P2(Flag='X') should show 600 value.

what should i do?

Not applicable
Author

hi Gysbert Wassenaar,

have you tried out to attempt this???

Thank you for solution its working but on part selection it is not working as i need .,.

kindly suggest what should i do ???

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

have you tried out to attempt this???

No, I can't seem to access your document. For some reason my computer doesn't seem to have a connection to the system where you stored it.


talk is cheap, supply exceeds demand
Not applicable
Author

HI,

I had given you dummy data.

rangesum(sum({<Flag={'X'}>}aggr(sum({<Category=P({<Flag={'X'}>} Category)>} total <Category> Value),Category,Part)),sum({<Category=E({<Flag={'X'}>}Category)>}Value))  by this expression i will get my expected output but on Part selection what i want is...

If i select part which does not have flag value it should show zero value and if i select part which have flag value  'X'

should show value as addition of part associated with same category

Eg:

If i Select P1 (Flag=' ')should show 0 value and if i select P2(Flag='X') should show 600 value.

what should i do?

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

see attached example


talk is cheap, supply exceeds demand