Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Garyhb
Frequent Visitor

card visualization formatting for dax

I would like to format this card visualization which is a Dax formula :

 

Garyhb_0-1643078295115.png

 

I tried to use the number format in the column tools and it does not work:

Garyhb_1-1643078358558.png

 

it should ideally look like this :

Garyhb_3-1643078460154.png

 

 

 

 

1 ACCEPTED SOLUTION

@Garyhb Click on the measure and go to the ribbon and change the Format to "GENERAL" and use the comma.

 

TheoC_0-1643081908669.png

If it automatically changes to a Decimal, then just go to the Visualizations pane and "Call Out Value" and put 0 in the "decimal" section.

TheoC_1-1643082023170.png

Please give this a go.

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

View solution in original post

13 REPLIES 13
Garyhb
Frequent Visitor

@VahidDM Tried changing to "General" and the comma

it will revert back to it to whole number but it didn't change the data.

Garyhb_0-1643081777297.png

 

 

if it is sum of the data then there is no issue :

Garyhb_1-1643081971065.png


but i need to count the number of stocks  and it seems if I count the number of stocks I can't display it as 3,110 :

 

Garyhb_2-1643082010927.png

 

@Garyhb 

 

Can you share your PBIX file?

 

 

@Garyhb 

 

set 0 decimal like image below:

VahidDM_0-1643089518534.png

 

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: 
www.linkedin.com/in/vahid-dm/

 

 

VahidDM
Super User
Super User

Hi @Garyhb 

 

add #,##0;($#,##0) to your Format section.

VahidDM_0-1643079997944.png

 

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: 
www.linkedin.com/in/vahid-dm/

 

 

 
 

Hi @VahidDM 

Garyhb_0-1643079945669.png


i tried to change the format to #,##0;($#,##0) but still remain the same

 

@Garyhb 

 

maybe this:

Measure 2 = 
Var _A =COUNTROWS('Table')*12323123 -- add your formula here
return
format(_A,"#,##0")

VahidDM_0-1643080547099.png

 

 

https://docs.microsoft.com/en-us/dax/format-function-dax

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: 
www.linkedin.com/in/vahid-dm/

 

 

Still can't :  Garyhb_1-1643080813302.png

Active SKU = 
VAR _A= COUNTROWS(
    FILTER(
        RELATEDTABLE('Product'),OR('Product'[status]="active",'Product'[status]="")))

return
format(_A,"#,##0")

 

TheoC
Super User
Super User

Hi @Garyhb 

 

Are you wanting the measure to provide you with the answer 1,048,218? Or do you want the title on the card to go away? If it is the "Category Label" you want to disappear, just go to the Visualizations panel on the right and go to "Category Label" and switch it off 🙂

 

TheoC_0-1643079531618.png

 

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

Garyhb
Frequent Visitor

Hi @TheoC 

its not the category label.

I wanted 44006 to be 44,006

i tried using this it does not work 

Garyhb_0-1643079831965.png

 

@Garyhb Click on the measure and go to the ribbon and change the Format to "GENERAL" and use the comma.

 

TheoC_0-1643081908669.png

If it automatically changes to a Decimal, then just go to the Visualizations pane and "Call Out Value" and put 0 in the "decimal" section.

TheoC_1-1643082023170.png

Please give this a go.

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

Garyhb
Frequent Visitor

it works thanks 🙂

@Garyhb did you try the above?

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.