Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
AidaAR
Contributor II
Contributor II

How do I refer a sum function to the dimension category instead of the measure?

Hello all,

I've just started working with Qlik sense and I've encountered something I don't know how to express properly. I have some defects I need to show depending on the group that have done them. When totalizing the number is correct and gets to the value (expresion is= sum(weight of defect)/sum(weight))

AidaAR_2-1696937913900.png

But when applying the type of defect on the grafh on the right, instead of dividing the defect by the weigh of all material processed by gruop A, it divides by the weight of the material with that defect, so the total number is now incorrect.

AidaAR_0-1696937808523.png

How can I fix this? I've tried sum all, sum total and it does not work.

It's driving me crazy

Labels (1)
1 Solution
2 Replies
WalterSansdis
Contributor II
Contributor II

Amigo, acho que posso te ajudar. Pra isso, você poderia disponibilizar a tabela com os campos? Seria mais fácil de entender, assim posso sugerir um filtro no próprio código da expressão. Caso não puder disponibilizar, poderia construir uma tabela de dados, parecida com a original, apenas com dados fictícios?