Skip to main content
Announcements
WEBINAR April 23, 2025: Iceberg Ahead: The Future of Open Lakehouses - REGISTER TODAY
cancel
Showing results for 
Search instead for 
Did you mean: 
LuisM
Contributor III

% of Participation

Hi all,

I have this table:

LuisM_0-1653664584577.png

Im trying to calculate the  % of participation from my TOTAL SALES for every Sales Executive Amount but my result still 0

Any can help me how to solve it? 

l was trying with this: Monto Mn Bruto SKU = TOTAL SALES

 LuisM_2-1653664774907.png

 

Thanks 

 

 

Labels (2)
2 Solutions

Accepted Solutions
vinieme12
Champion III

Use the total keyword as below for example

 

Sum(Sales)/Sum(TOTAL Sales)

 

https://community.qlik.com/t5/QlikView-App-Dev/TOTAL-ALL-DISTINCT-IN-SET-ANALYSIS/td-p/1086575?searc...

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

vinieme12
Champion III

You don't need Aggr() as all measures aggregate based on the dimensions used in the chart,

unless you are aggregating on a dimension that is not used in the chart or on a different level of granularity 

Try below 

sum([Monto Mn Bruto]) /Sum(Total [Monto Mn Bruto SKU])

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

5 Replies
vinieme12
Champion III

Use the total keyword as below for example

 

Sum(Sales)/Sum(TOTAL Sales)

 

https://community.qlik.com/t5/QlikView-App-Dev/TOTAL-ALL-DISTINCT-IN-SET-ANALYSIS/td-p/1086575?searc...

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
LuisM
Contributor III
Author

Thank u vinieme12

l was using this  without TOTAL.

max(Aggr(sum([Monto Mn Bruto SKU]),[Ejecutivo Ventas DetFac])) /Sum(([Monto Mn Bruto SKU]))

 

Now l use

max(Aggr(sum([Monto Mn Bruto SKU]),[Ejecutivo Ventas DetFac])) /Sum(Total([Monto Mn Bruto SKU]))

and It works, thank you

vinieme12
Champion III

You don't need Aggr() as all measures aggregate based on the dimensions used in the chart,

unless you are aggregating on a dimension that is not used in the chart or on a different level of granularity 

Try below 

sum([Monto Mn Bruto]) /Sum(Total [Monto Mn Bruto SKU])

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
LuisM
Contributor III
Author

NICE!!

I didnt know that, as was using the fiel "EjecutivoName", l thought AGGR was neccesary but now is more clear. I try without aggr and works same

 

Thank you very much for always help. 

 

vinieme12
Champion III

Refer these articles for more

 

https://community.qlik.com/t5/Qlik-Design-Blog/Use-Aggregation-Functions/ba-p/1475833 

 

https://community.qlik.com/t5/Qlik-Design-Blog/It-s-all-Aggregations/ba-p/1465669

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.