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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
pgloc2020
Creator
Creator

Display $0.00 in place of NULL in dimension.

Hello All,

I have created a simple table chart with the following columns-

pgloc2020_0-1677681481363.png

In order to get the Credit and Debit amount separately, I used the following expression in dimension. 

=If(Match(FINANCIAL_TRANSACTION_TYPE, 'DA Credit'), AMOUNT) 

and

=If(Match(FINANCIAL_TRANSACTION_TYPE, 'DA Debit'), AMOUNT)

Now my report requirement is to display $0.00 where the amount is NULL (-)

Please let me know how I can achieve $ sigh before the amount and "0.00" where the amount is null . 

The original dataset looks like this-

pgloc2020_0-1677682091989.png

 

Thank you so much in advance.

 

Labels (2)
2 Solutions

Accepted Solutions
ogster1974
Partner - Master II
Partner - Master II

this will work.

ogster1974_1-1677682702948.png

 

=If(Match(Key,1,3,5,7,9), num(Value,'$#,##0.00'), num(0,'$#,##0.00'))

 

just add 0 to the else part of your If statement and format your numbers.

 

View solution in original post

Clever_Anjos
Employee
Employee

You can try

num(COALESCE(If(Match(FINANCIAL_TRANSACTION_TYPE, 'DA Credit'), AMOUNT),0) ,'$#,##0.00'

as well

View solution in original post

4 Replies
ogster1974
Partner - Master II
Partner - Master II

this will work.

ogster1974_1-1677682702948.png

 

=If(Match(Key,1,3,5,7,9), num(Value,'$#,##0.00'), num(0,'$#,##0.00'))

 

just add 0 to the else part of your If statement and format your numbers.

 

pgloc2020
Creator
Creator
Author

Thank you so much. It works. 

Clever_Anjos
Employee
Employee

You can try

num(COALESCE(If(Match(FINANCIAL_TRANSACTION_TYPE, 'DA Credit'), AMOUNT),0) ,'$#,##0.00'

as well

pgloc2020
Creator
Creator
Author

Hi  ,

This expression works too-

= num(COALESCE(If(Match(FINANCIAL_TRANSACTION_TYPE, 'DA Credit'), AMOUNT),0) ,'$#,##0.00')

Thanks a lot.