Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
agni_gold
Specialist III
Specialist III

Total in Million on chart

Hi Experts ,

I have a situation , i have made one chart , like below ,

Chart.jpg

But i want the total amount should be in million. Rest will be the same.

Please help

12 Replies
sunny_talwar

Have you tried using the Number's tab for doing this?

Capture.PNG

agni_gold
Specialist III
Specialist III
Author

i have tried , but it is not working.

agni_gold
Specialist III
Specialist III
Author

Only Total amount should be 24.55

asgardd2
Creator III
Creator III

You can use function Dimensionality() in Expression for custom total values:

If(Dimensionality() > 2, Sum(Amount) , Num(Sum(Amount)/1000000, '##.00') )

Not applicable

Try this expression

  if(sum(Sales)>=1000000, 'M  '&sum(Sales)/1000000, sum(Sales))

tresesco
MVP
MVP

Try with dimensionality() like:

If( Dimensionality()=0 , Num(YourExpression/1000000, '##.00')&'M', YourExpression)

vikasmahajan

PFA Demo

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
jagan
Luminary Alumni
Luminary Alumni

Hi,

Try liek this

If(RowNo() = 0,  Sum(Sales)/1000000, Sum(Sales))

agni_gold
Specialist III
Specialist III
Author

Thanks ,

But your expression is not working ,

I think you all understanding my question wrongly , please see below screenshot , what i need.

Chart.jpg