Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

doubt about expression!

Hi, modeling the data i did this

example.png

I'd like to see in bonificaciones% only one expresion. this will be gross_sales + bonificaciones_nc + otras_bonificaciones / bonificaciones_prov

do you think i can do this?

regards

5 Replies
Not applicable
Author

I do not see why you would not be able to do this

Suggestion - do in the load script and so you do not have to claculate each time the user selects anything.

Make sure each item in the calcualtion is a dimension, which it sounds like it is, and I do not see it as an issue

Not applicable
Author

Hi thank you for your answer.

Because of the model, i'd like to sum this in the expression.

What expression do you suggest?

Regards,

Kushal_Chawda

try below expression

(sum(gross_sales) + sum(bonificaciones_nc) + sum(otras_bonificaciones)) /sum( bonificaciones_prov)

Not applicable
Author

These aren't expressions. They're dimmensions. The only expression is SUM(VALOR)

Greetings.

Not applicable
Author

I agree with Kush141087, not sure I understand your comment 'These aren't expressions. They're dimmensions. The only expression is SUM(VALOR)'