Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I'd like to display money representing numbers the same way de Automatic format does, for example:
(using . as thousands separator and , as decimal)
is this possible?
Hi @nlopedebarrios , here an option for what you want :
Example data :
Data:
Load * INLINE [
Type, Amount
A, 1250000
B, 429300
C, 1575000000
];
Viz :
Expression :
'$ ' & if(Sum(Amount) < 1000000,
num(Sum(Amount) / 1000, '#.##0,00') & ' K',
if(Sum(Amount) < 1000000000,
num(Sum(Amount) / 1000000, '#.##0,00') & ' M',
num(Sum(Amount) / 1000000, '#.##0') & ' M'))
Hi @nlopedebarrios , here an option for what you want :
Example data :
Data:
Load * INLINE [
Type, Amount
A, 1250000
B, 429300
C, 1575000000
];
Viz :
Expression :
'$ ' & if(Sum(Amount) < 1000000,
num(Sum(Amount) / 1000, '#.##0,00') & ' K',
if(Sum(Amount) < 1000000000,
num(Sum(Amount) / 1000000, '#.##0,00') & ' M',
num(Sum(Amount) / 1000000, '#.##0') & ' M'))
Thank you @QFabian !
Hi again, @QFabian, the solution works in a KPI, but when I try to use it in a bar o timeline chart, I'm getting this error:
The graph is not displayed because it only contains undefined values
I've used the expression to create a master measure.