Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
FelipeG
Contributor II
Contributor II

Percentage on date dimension

Hey Qlik Developers!

I have a table with this information:

DateNameTypeAmount
19/10/2020name1Type180
19/10/2020name6Type110
19/10/2020name2Type210
20/10/2020name3Type150
20/10/2020name4Type350
21/10/2020name5Type160

 

With this data I want to show a table chart with the percentage of amount for each type in a given date, like this:

 

DateTypeSum AmountPercentage of day
19/10/2020Type19090%
19/10/2020Type21010%
20/10/2020Type15050%
20/10/2020Type35050%
21/10/2020Type160100%

 

How can I achieve this? I'm having trouble calculating the percentage and sum taking into account the date.

 

Kind Regards, 

Felipe.

Labels (1)
1 Reply
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Use this expression in your table.

Sum(Amount)/Sum(Total<Date> Amount)

 

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!