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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Product wise Total

Dear All

I need help on below Requirement:

Snaaapshot.png

Any help would be appreciated.

Regards

ERic

Labels (1)
13 Replies
PrashantSangle

Hi,

In script You need to use simple sum() with group by product.

Regards,

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 🙂
susovan
Partner - Specialist
Partner - Specialist

Thank you sir for your valuable suggestion ,

Warm Regards,
Susovan
Not applicable
Author

Hi Eric,

Try this in script..

testtttt:

LOAD Proposal,

     Value,

     Product

FROM

Sample_Test.xlsx

(ooxml, embedded labels, table is Sheet1);

Left Join(testtttt)

LOAD Product,sum(Value) as total Resident testtttt group by Product;

final:

LOAD *,Value/total as [Desired Result] Resident testtttt;

drop table testtttt;

Thanks,

sunny_talwar

For backend you can try this:

Table:

LOAD * INLINE [

    Proposal, Value, Product

    1111, 1000, CAR

    1112, 2000, CAR

    1113, 3000, TRUCK

    1114, 4000, TRUCK

    1115, 5000, TRUCK

    1116, 6000, TEMPO

    1117, 7000, TEMPO

    1118, 8000, BIKE

];

MappingTable:

Mapping

LOAD Product,

  Sum(Value)

Resident Table

Group By Product;

FinalTable:

LOAD *,

  Value/ApplyMap('MappingTable', Product) as [Desired Result]

Resident Table;

DROP Table Table;


Capture.PNG