Forum Discussion

Sujit_Thakur's avatar
Sujit_Thakur
Solution Sage
5 years ago
Solved

Number format

Dear all , 

I have a measure which returns me value such as 

1000

23

3200

2

500000

 

I want to return 

1k

23

3.2k

500k

 

I tried using format into thousand but it converts all numbers to K format 

I want only those numbers to turn in K format which are greater than 1000 

 

Need help 

Regards 

Sujit 

  • Ok friends 

    I tried and I reached to conclusion

     

    Loss = var a = MEASURE 

    RETURN IF(a>=1000,Format(a,"#,.#K"),a)

     

    If you have more optimized solution please feel free to shoot your advices in comments down 👍

4 Replies