Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to display data in crores and lacs format in measure of barchart?

so this is the condition :

if(912000000>10000000, Num(912000000/10000000, '###.##') & 'Crores', Num(912000000/100000, '###.##') & 'Lacs')

this expression helps me to convert value label from million to crores but its not displaying in barchart

Example (output):

Capture.PNG

please help

20 Replies
avkeep01
Partner - Specialist
Partner - Specialist

Hi Pranav,

Try:

=NUM(if(912000>10000000, 912000/10000000, 912000), if(912000>10000000, '###.## Crores', '###.### Lacs'))

probably change 912000000 to the corresponding fieldname of course.

Mark_Little
Luminary
Luminary

Hi,

Not sure on why you are doing the 912000000>10000000 part as it will always be true, but to display

Make sure you do your division in the the expression. Then Change number fomat to custom and add your form '###.## Crores' in the Format Pattern.

Mark

Anonymous
Not applicable
Author

but it would display the wrong value it will simply append crore behind every value,

above expression will check if the value is in lacs or crores, and based on the value check it will remove zeros and displays the value

Capure.PNG

teiswamsler
Partner - Creator III
Partner - Creator III

Hi Pranav

try using the money() funktion insted if num(),

/Teis

Anonymous
Not applicable
Author

that doesn't work because i want to divide the value by 1 lac if its less than crore and if its in crore i'll divide the value by 1crore and based on the value check lac/crore tag is appended to the end of value.. i hope know you understand my problem

Anonymous
Not applicable
Author

For Lakhs you can use Num(912000000/100000, '###.##')  as Num(912000000/100000,'0.00L')

Anonymous
Not applicable
Author

that works for KPIs only and not in barchart..

Anonymous
Not applicable
Author

Which dimension and measure are you using in bar chart? Can you please specify.

Anonymous
Not applicable
Author

my dimension is ID and in measure i've written this expression:

if(Sum(Salary*10)>10000000, Num(Sum(Salary*10)/10000000, '###.##') & 'Crores', Num(Sum(Salary*10)/100000, '###.##') & 'Lacs')