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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
richard_chilvers
Specialist
Specialist

Conditional expression format

I have an expression which might deliver a financial value which I'd like to display as '£##0' OR a percentage value, I'd like to display in the format '##%'.

Can I do this with expression attributes ?

Thanks

Labels (1)
1 Solution

Accepted Solutions
rwunderlich
MVP
MVP

tresesco‌ idea is what I would do also.  However, maybe slightly more efficient (esp if <exp> is complex) would be:

Num(<Exp>, If( <YourCondition>, '##%', '£##0' ) )


-Rob

http://masterssummit.com

http://qlikviewcookbook.com

View solution in original post

3 Replies
sunny_talwar
MVP
MVP

What do you mean when you say Expression attributes?

tresB
Champion III
Champion III

Try like:

If( <YourCondition>, Num(<Exp>, '##%'), Num(<Exp>, '£##0' ) )

rwunderlich
MVP
MVP

tresesco‌ idea is what I would do also.  However, maybe slightly more efficient (esp if <exp> is complex) would be:

Num(<Exp>, If( <YourCondition>, '##%', '£##0' ) )


-Rob

http://masterssummit.com

http://qlikviewcookbook.com