Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

Using Card (New) visual to display two data points

Hi there, 

 

I am trying to use the new Card visual to visualize two measures together in my dashboard - Number of TTA request in progress, % of TTA in progress (e.g. 3, 30%)  

 

I tried to create this visual by changing the format code (attached below) but it's not showing that I am hoping to see. Both of these data are measures I created in Power BI. 

 

This is what I see right now: 

 

If I could let 30% go to where 00% currently is, that would be amazning.  Am I doing it right? Or is there another way to display the measures like 3 (30%) together in one visual? 

 

Thank you in advance for you help! 

 

Best,

Emily

 

  • edhans's avatar
    edhans
    2 years ago

    Those need to be separate values, and you add them using the Reference Labels or Details. 

    If you want them as one string, you could use the FORMAT function. Example:

    FORMAT([The Measure], "#.0%") & " " & FORMAT([The Measure], "(#.0%")

     

    That would add the same measure formatted two ways. You cannot format one measure with a string two different ways and get it to show twice. The FORMAT() function will let you be as detailed as you like and allow you to repeat the same thing different ways.

7 Replies

  • SM321's avatar
    SM321
    Frequent Visitor

    Did you try using reference labels? You can try something similar and play around with formating to get what you would like. 

    Would show something as below in the same card. You might have to create measures depending on your scenario.

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thank you SM321 . I need the % to be shown in parentheses after the number but this is a good idea I can use in the futre. Thanks

  • edhans's avatar
    edhans
    Community Champion

    Are you on the December 2023 desktop - the latest that was released in late January? I don't even see a format code for the new card. This is what I see:

    That said, you should format your measure to be the format you want.

    "#,0%;(#,0%);#,0%"

     

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thank you edhans! I think I am on September 2023 version but I'm having trouble updating to a newer verison currently. 

       

      Using the older version, I could see (30%) but is there a way to also see the count in the front? showing 3 (30%) instead. 

      Thank you!

      • edhans's avatar
        edhans
        Community Champion

        I would use the format method I showed for the measure and not what is in the card viz. If you are on Sept and seeing that it looks like that has been removed from December, which makes sense, formats should belong to measures, or be dynamic within the measure.

        That said, the format string I put above should work wherever format strings are available, and it turned the -0.3 in my data to the (30%) format you wanted.