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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
upaliwije
Creator II
Creator II

Sales Ratio

Hi Friends

I have following sales data in a worksheet

DeptPrdAmount
1A2000
1B1000
1C3000
1D4000
2A2500
2B1500
2D5000
2E6000
3E3500
3D8500
3C1000
3B5000

When I load data I want to modify the script to have another column in the table showing the % of sales of each Prd in each dept

In other words my table view should show data in following format. Pls help me to modify the script to obtain what I want . I have attached my QVW pls

 

DeptPrdAmountRatio
1A200020%
1B100010%
1C300030%
1D400040%
2A250017%
2B150010%
2D500033%
2E600040%
3E350019%
3D850047%
3C10006%
3B500028%
10 Replies
tresesco
MVP
MVP

There has to be a KEY to associate. In your sample I don't see a key field. You might have to create a composite key for the same. Go through your tables, I am sure you would get one.