Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
JRamos
Contributor III
Contributor III

Sum without repeat

Hi all!

I'm trying to create a KPI with the sum[Est Cost/Budget],  but I need to sum without repeat the program, like distinc[Program], I don't know how to use correctly the aggr format or if this is the correct function...

JRamos_1-1646156360948.png

Could you support me?
Best regards!

Labels (3)
3 Replies
chaorenzhu
Creator II
Creator II

Then how do you want to handle repeated program? In your example there are 4 records with CX727 which one do you want to use

Thiago_Justen_

Hi there,

Try:

Sum(Aggr(sum([Est Cost/Budget]),[Program]))

Thiago Justen Teixeira Gonçalves
Farol BI
WhatsApp: 24 98152-1675
Skype: justen.thiago
PrashantSangle

I think you don't required aggr().

It is repeating because, For every program you have different supplier & lever. If you add those field in table then you will get multiple row for one program

If you want to avoid repeation of program then remove supplier & lever. If you want kept the both then

add supplier & lever as measure with below expression

chart > Table

Dimension > Program

Measure > Concat(Supplier,',') > for supplier

Measure > Concat(Lever,',') > for Lever

Measure > sum([Est Cost/Budget])

 

Thanks & Regards,

Prashant Sangle

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂