Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
Have one requirement is that, one staright table dimension value should have multiple number formats.
For eg:
#,###.0 |
#0.00% |
Can please do the needfull.
HI,
based on any conditions ? if so please specify
You can check the dimension value and apply different formats using num() function in the expression, keep the number format on number tab to 'expression default':
=Num(
Sum( Amount),
Pick(Match( YourDimension, 'A', 'B'), '#,###.0','#0.00%')
)
Hi,
No conditions, some thing similar to below table:
Dim | Actual | Plan |
Dim1 | 10.3 | 10.42 |
Dim2 | 20% | 30% |
now for Dim1 the format is
#,###.0 |
and for dim2 the format is
#0.00% |
HI,
Try like
If(Dim='Dim1',num(Sum(Actual),'#,##0.0'),num(Sum(Actual),'#,##0%'))
i dont think it will work if we have many values
Please share your sample file
Hi,
Thanks for your reply,
By using above condition only 1 dimension number format was changing not all.
can please let me know that I am doing right.?
Could you upload a small sample QVW?
Using Stefan's technique:
Expression: =Num(Sum(Actual), Pick(Match(Dim, 'Dim1', 'Dim2'), '#,##0.0', '##%'))
=Num(Sum(Plan), Pick(Match(Dim, 'Dim1', 'Dim2'), '#,##0.0', '##%'))