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

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
l26b
Contributor III
Contributor III

round up on KPI

hi,

 

I have a few kpis measuring sum of certain volumes that go from 10 K to 100 M. 

 

I currently show the numbers in KPI as 12.5 K / 54.5 M but I want to round up the numbers and use 12k, 54M

 

how I can do that to assure that the round up will happen even if it is a small volume or in millions? 

 

thanks

Labels (3)
1 Reply
Chanty4u
MVP
MVP

Try this 

If(Sum(Volume) >= 1000000, 

    Ceil(Sum(Volume) / 1000000) & 'M', 

    If(Sum(Volume) >= 1000, 

        Ceil(Sum(Volume) / 1000) & 'K', 

        Ceil(Sum(Volume))

 

  )

)