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

how to calculate your expressions base on multiple unit

picb.JPG

See snapshot above;

I have 2 expressions Actual and Target, how do i calculate base on the unit ex: the %

4 Replies
sunny_talwar

Not entirely sure about what you are trying to achieve here. Calculate base on the unit? how would you do this out of QlikView (an example would help us understand your question much better)

Best,

S

Not applicable
Author

I wanna make a condition such that when unit is % it calculate percentage in expression

simondachstr
Luminary Alumni
Luminary Alumni

You need a conditional statement which checks whether Unit is Days, Mins or %. Maybe use something like this:

pick(Match([Unit],'Days','Mins','%',), [Expression for Units per Days],[Expression for Units per Mins],[Expression for %])

sunny_talwar

Trying to achieve this?

Use the following expression with your field names:

=If(Unit = '%', Num(Sum(Value)/100, '#,##0.0%'), Num(Sum(Value), '#,##0'))

HTH

Best,

S