Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Conditional if inside expression

I have a field that indicates whether the value of another column is percentage (%) or unit (U) if % format the value of the expression in percentage format or in number with a decimal point. It has to do with if inside the expression?

1 Solution

Accepted Solutions
Not applicable
Author

See attached for a small example.

Hope it helps.

View solution in original post

2 Replies
Not applicable
Author

See attached for a small example.

Hope it helps.

Not applicable
Author

I try to make this in expression:

if(UNITY = '%', num(Sum (VALUE),'#.##0,00%'),

if(UNITY <> '%', num(Sum (VALUE),'#.##0,00')))

But not working...