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

Announcements
Posting on Qlik Community is temporarily paused. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Currency Symbol display

=If( GetSelectedCount( LuCurrencyType3 )>0,

num(sum(IF([Month of Expense]=MONTH(Today()),

   IF([Year of Expense]=YEAR(Today()),[Expense Amount (USD)]/Factors,varCurrencySymbol& ' '& '#,#00.0' ))))

, num(sum(IF([Month of Expense]=MONTH(Today()),

     IF([Year of Expense]=YEAR(Today()),[Expense Amount (USD)],varCurrencySymbol& ' '& '#,#00.0')))))

I have the above expression I am not able to get the currencysymbol working.Also,in Number I have set to expression default,but still it is not defaulting to single decimal.

varCurrencySymbol has list of different currency symbols (in text format)


Thank you.

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Check out the attached qvw

View solution in original post

8 Replies
sunny_talwar
MVP
MVP

Can you try this:

=If(GetSelectedCount(LuCurrencyType3) > 0, Num(Sum(If([Month of Expense] = Month(Today()),

  If([Year of Expense] = Year(Today()), [Expense Amount (USD)]/Factors, '$(varCurrencySymbol)#,#00.0')))),

  Num(Sum(If([Month of Expense] = Month(Today()),

  If([Year of Expense] = YEAR(Today()), [Expense Amount (USD)], '$(varCurrencySymbol)#,#00.0')))))

Not applicable
Author

Thank you but it is displaying values as 3876964.4687334

sunny_talwar
MVP
MVP

What do you see when you put $(varCurrencySymbol) in a text box object?

Not applicable
Author

I have set varCurrencySymbol to maxstring(CurrencySymbol)

I see the above imagecurrency.PNG

sunny_talwar
MVP
MVP

Check out the attached qvw

Not applicable
Author

Awesome.Thank you very much.Really appreciate your help ,patience and willingness to help.Stay blessed

sunny_talwar
MVP
MVP

Not a problem. Just curious to know what were you doing differently that was not working in your application initially?

Not applicable
Author

The close parenthesis for Num(sum( was not placed appropriately.