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

Can calculated dimensions be used as conditions?

For example:

ABCDresult
< 5K< 4K< 2K< 1K6%
≥ 5K,and< 10K≥ 4K,and< 7K≥ 2K,and< 3K≥ 1K,and< 2K7%
≥ 10K,and< 15K≥ 7K,and< 10K≥ 3K,and< 4K≥ 2K,and< 3K9%
≥ 15K,and< 22K≥ 10K,and< 15K≥ 4K,and< 5K≥ 3K,and< 4K11%
≥ 22K≥ 15K≥ 5K≥ 4K13%

Above is the rule.

If I have some data like this:

TypeAmt
A12000
A26000
A3200000
A41000
B13000
B25000
C11000
C24500
C36000
D1500
D21500
D33500
D44500

And have already grouped by functions:

TypeGroupAmt
A1A2000
A2A6000
A3A200000
A4A1000
B1B3000
B2B5000
C1C1000
C2C4500
C3C6000
D1D500
D2D1500
D3D3500
D4D4500

How can I have the result?(Use many if functions?)

TypeGroupAmtresult
A1A20006%
A2A60007%
A3A20000013%
A4A10006%
B1B30006%
B2B50007%
C1C10006%
C2C450011%
C3C600013%
D1D5006%
D2D15007%
D3D350011%
D4D450013%
12 Replies
Not applicable
Author

If I write the logic to the script, I need to call in  the technical personnel of the back end. Too much trouble. I have already hard-coded the requirements on the front end.Thank you anyway.

SergeyMak
Partner Ambassador
Partner Ambassador

You know I spent a lot of time with the people on my previous job to force them to move all calculations into the load script.

But it decreased load of server in 2-3 times.

In case of qlikview you have to hardcode the requirements into script as them is approved by business, because in this way you improve your app

But when you just play with data, you should have it on the frontend.

And I should add you always can have both in your application, but it should be used by end users if there is no other way.

Regards,
Sergey
Not applicable
Author

Thank you for your advice.I need to learn push some people when necessary.