Forum Discussion

hhuddleston's avatar
hhuddleston
Advocate III
9 years ago
Solved

Number Formatting on Card Visualization

I have a card visualization that totals the number of ticket scans for a tourist attraction. This is a direct query dataset, so it is essentially giving real time data, updated every minute. The number in the dataset is an int data type and I have set it as a comma seperated whole number in the Modelling tab, and the format is also set as a whole number.  In the card format for Data Label Display units is set to None. The issue is that is displays properly as a comma seperated number up until it reaches 10,000, but then the display switches to 10.1 K instead of 10,100 (or 10,125) which is how I want it to display. The attraction manager wants it to show it as a comma seperated number no matter how high the number goes. Any help would be appreciated.

  • hhuddleston's avatar
    hhuddleston
    9 years ago

    I managed to get this to display properly, using the following settings:

     

    Data Modeling in PBI model

    • Data Type - Whole Number
    • Format - Whole Number
    • Thousands Seperator - Enabled
    • Decimal Places - 0

    Visualization for Card

    • Display Units - None

    Thanks for everyone's input!

     

    Herb

8 Replies

  • v-huizhn-msft's avatar
    v-huizhn-msft
    Microsoft Employee

    Hi hhuddleston,

    I import data in direct query mode, and add the date into  a card, it also shows correctly, please see the following screenshot.



    Best Regards,
    Angelia

  • Anonymous's avatar
    Anonymous
    Not applicable

    select the card visual > Format > Data label > Display unit.... In this way, we can format our display unit to auto, none, thousand, million, trillion, billion....

     

    Thank you

    🙂

  • Hi hhuddleston,

     

    It is weird, I tried as you explained and I have this visual.

    Can you please show us a sample in order to better understand your request.

     

    Thank you,

     

    • hhuddleston's avatar
      hhuddleston
      Advocate III

      The card on the left is what I want to display - no matter how high the number goes.

      The card on the right is what happens when it crosses the 10,000 mark.

       

      • Interkoubess's avatar
        Interkoubess
        Solution Sage

        Hi hhuddleston,

         

        Either you give us your sample in order to test it again, but I still have the right visual ( on the left) when I tested on my computer.

        Perhaps another person can elaborate the issue ( if it is )....

        Thank you