Expand my Community achievements bar.

Querying when value=0 on an aggregated field is not working correctly

Avatar

Level 1

Hi all,

 

I've noticed a strange issue with a workflow where we only want to target clients with $0-$1000 total transactions of a certain type and date range.

I have created the totals using an enrichment activity and a Sum expression (Sum(@gross_amount)) which works fine.

However, when I try to query the results, I am getting $0 values in the Subset AND the Compliment

 

Query:

JoshW_2-1708407808787.png

 

 

Subset:

JoshW_0-1708407727775.png



Complement:

JoshW_1-1708407764164.png

 

I also noticed that 0 values are being sorted as smaller than negative values when I sorted asc or desc.

 

I haven't noticed issues with querying =0 in any other situations.

 

Any help would be much appreciated.

Thanks

 

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

4 Replies

Avatar

Community Advisor

Hello @Josh-W 

 

Could you please share screenshot of how the enrichment is configured?


     Manoj
     Find me on LinkedIn

Avatar

Level 1

Hi @_Manoj_Kumar_ 

 

Here is the configuration

JoshW_0-1708563814456.png

Sum(@gross_amount)

 

JoshW_1-1708563869597.png

 

JoshW_2-1708563937263.png

 

JoshW_3-1708563971441.png

Please let me know if you need any other views.

 

Thanks

 

Avatar

Community Advisor

Hello @Josh-W 

 

Did you try directly adding sum(@gross_amount) in enrichment?

Currently it is added a child attribute by Cashflow in link?

 

Also, whenever we do aggregation the groupBy value is required. Try adding recipient id as groupBy parameter

 


     Manoj
     Find me on LinkedIn

Avatar

Level 1

Hi @_Manoj_Kumar_ 
I'm unsure what you mean about directly adding sum(@gross_amount) without it being a child attribute.

Would Cashflow need to be my targeting dimension for this to be possible?

Here are my steps before creating the sum expression

JoshW_2-1709011404653.pngJoshW_3-1709011456725.pngJoshW_4-1709011503895.pngJoshW_5-1709012587514.png

 

 

For the data grouping is it simply one of these options? I tried each one but didn't see any difference in the results.

JoshW_1-1709010812212.png

 

Thanks