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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
tahirkhalil
Creator
Creator

Accumalation based on partial field names

Hi all,

I am stuck up in one project - I need to sum up based on partial field names, I have following three basic KPIs

1. PRO-Proposition

2. PLN-Planogram

3. SOS-Share of Shelf

I have all three fields for different product lines like Haircare, Skincare, Beverages etc. I got total 10 product lines and 3 KPIs which makes total 30 fields. Now, I have to present the accumulated/Sum of all three KPI based on Product Line like:

  

Product LineKPIPerformance
HaircarePLN12
PRO23
SOS10
BeveragesPLN11
PRO10
SOS13
SkincarePLN10
PRO9
SOS

11

How can I achieve that?

I have attached sample data for your reference.

I have attached again as it was found missing during post.

Regards,

Tahir

Message was edited by: Tahir Khalil - Sample Data File Attachment Missing

13 Replies
Not applicable

Sum(total <[Product Line]> Performance)

Try this

Thanks

Sai

tahirkhalil
Creator
Creator
Author

HI,

Can you please see the sample data in XLS - I was unable to attach it before.

Regards,

Tahir

tahirkhalil
Creator
Creator
Author

Any clue guys?

alex_millan
Creator III
Creator III

Hi Tahir,

check the attached file.

You must load your table as crosstable, then split one field to separate ProductLine and KPI.

HTH

Regards

tahirkhalil
Creator
Creator
Author

Hi Alex,

You forget to attach file.

TK

jonathandienst
Partner - Champion III
Partner - Champion III

I suggest that you post the expected results, as the numbers could be "accumulated" in several different ways.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
alex_millan
Creator III
Creator III

I see the attached file in my previous post but... I'm sending it in again, just in case...

Cheers

tahirkhalil
Creator
Creator
Author

I want to accumulate performance based on KPI. As you may have seen my XLS - I have total 30 fields - 3 KPIs each have 10 categories/product line. These 30 field names are [KPI]_[ProductLine] like PLN_HairCare contain the result. I want to make a bar chart stating HairCare on X-Axis while 3 separate bars stating all three KPI values.

tahirkhalil
Creator
Creator
Author

Alex - what if I avoid the crosstab functionality. I want to keep reduced data set in terms of rows.