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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources 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

1 Solution

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/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

What do you mean when you say Expression attributes?

tresesco
MVP
MVP

Try like:

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

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/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