Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
asknyldz
Contributor III
Contributor III

Different number formats in Straight Table Expressions

Hello Everyone,

I want to Different number formats in Straight Table Expressions.

For Operating Income is $, For NOI Margin is %

How can it possible?

AccountAmount
Income6,000 $
Margin27.8%

 

Regards,

1 Solution

Accepted Solutions
Arthur_Fong
Partner - Specialist III
Partner - Specialist III

Try this:

 

MC.PNG

Create a straight table with Account as Dimension,

Expression: 

if(Account='Income',num(sum(Amount),'#,###'),
if(Account='Margin',num(sum(Amount)/100,'##.#%')))

In chart properties > Number >Select Expression Default.

Thanks and regards,

Arthur Fong

 

 

View solution in original post

2 Replies
Arthur_Fong
Partner - Specialist III
Partner - Specialist III

Try this:

 

MC.PNG

Create a straight table with Account as Dimension,

Expression: 

if(Account='Income',num(sum(Amount),'#,###'),
if(Account='Margin',num(sum(Amount)/100,'##.#%')))

In chart properties > Number >Select Expression Default.

Thanks and regards,

Arthur Fong

 

 

Brett_Bleess
Former Employee
Former Employee

Askin, did Arthur's suggestion work for you?  If so, do not forget to return to the thread and use the Accept as Solution button on his post to give him credit for the help and to let other Community Members know it did work.  If you are still working on things, leave an update on what you still need.

In these cases, attaching a sample QVW file can be helpful too.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.