Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
DavidFoster1
Specialist
Specialist

Aggr problem

I have the following expression

=CONCAT({$<Stage.YrMthID={'297'}>} AGGR(SUM({$<Stage.YrMthId={'297'}>} [Project Stage Duration]),[Project Id],[Project Stage]),',')

I need this statement to return the results linked to YrMthId 297 irrespective of the actual selected value of YrMthId. But the behaviour I am getting is when I select a YrMthId other than 297 the result is NULL.

I have other filters that I need to include so I need to use the $.

Any ideas?

6 Replies
jagan
Luminary Alumni
Luminary Alumni

Hi,

Try this

I have a table like this

city sales
blore2300000
chennai5600000
hyd1000000

=CONCAT({<city={'blore'}>} AGGR(SUM({<city={'blore'}>} sales),city),',')

This expression is working, can you attach some sample file.

Regards,

Jagan.

Not applicable

It works with $ sign as well.

=CONCAT({$<city={'hyd'}>} AGGR(SUM({$<city={'hyd'}>} sales),city),',')

You might have to check your other selections, that might not match the result set of YrMthId = 297, so either have to deselect it, or ignore them in set analysis.

Thanks,

Singh

DavidFoster1
Specialist
Specialist
Author

Does it work if you make a different selection in the city field?

Not applicable

Yes it does David. It works even If I clear selections for the City field. Try selecting any ID other than 297 and deselect all selections. Then one by one add your other selections and see where it is failing.

jagan
Luminary Alumni
Luminary Alumni

Hi,

It works even for a different selection in the city field, can you attach sample file.

Regards,

Jagan.

DavidFoster1
Specialist
Specialist
Author

Thanks for testing for me. I must be doing so etching stupid in the app

Sent from my iPad