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
MrPowerBIPro
Helper II
Helper II

Format function destroys some of charts!

HI

when I use Format() function to format my currency to "Standard" or "Currency", my pie chart that used this  (and some other charts) destroy!

for exmaple Value Format (Sales[sales_values],"$#,##0;($#,##0)") doesn't work on pie chart!

Value Format (Sales[sales_values],"Standard") worked.

 

Any help please?

 

P.S: I changed my original post based on @Baskar reply.

Enemy of can't
www.mrpowerbi.pro
1 ACCEPTED SOLUTION

It's fantastic that in the "Table" or text based Custom Visual like "Card" every thing is ok!!! in the charts I have problem. when I change "Pie Chart" to Table I see my result in the $,Euro and IRR format! I think it's a bug maybe!

Enemy of can't
www.mrpowerbi.pro

View solution in original post

10 REPLIES 10
Baskar
Resident Rockstar
Resident Rockstar

Try this one 

 

Value( Format (Sales[sales_values],"Standard"))

 

 

Let me know if it is not helping u

@Baskar

Thanks for your reply. In fact your exmpale worked and I knew that, But I need this one my friend :

Value( Format (Sales[sales_values],"$#,##0;($#,##0)"))

custom format for showing $:

https://msdn.microsoft.com/en-us/library/ee634206.aspx

Thanks a lot

Enemy of can't
www.mrpowerbi.pro

@Baskar

Thanks for your reply. In fact your exmpale worked and I knew that, But I need this one my friend :

Value( Format (Sales[sales_values],"$#,##0;($#,##0)"))

custom format for showing $: https://msdn.microsoft.com/en-us/library/ee634206.aspx

Thanks a lot

Enemy of can't
www.mrpowerbi.pro

@Baskar

Thanks for your reply. In fact your exmpale worked and I knew that, But I need this one my friend :

Value( Format (Sales[sales_values],"$#,##0;($#,##0)"))

custom format for showing $: https://msdn.microsoft.com/en-us/library/ee634206.aspx

Thanks a lot

Enemy of can't
www.mrpowerbi.pro

@Baskar

 

Thanks for your reply.

In fact your exmpale worked and I knew that, But I need this one my friend :

 

Value( Format (Sales[sales_values],"$#,##0;($#,##0)"))

 

custom format for showing $:

 

https://msdn.microsoft.com/en-us/library/ee634206.aspx

 

Thanks a lot 

Enemy of can't
www.mrpowerbi.pro

Hey dude , pls look this screenshot i hope it will help u .

1.JPG

 

 

 

Note :

 

Negative and Zeros are not display in Pie Chart

It's fantastic that in the "Table" or text based Custom Visual like "Card" every thing is ok!!! in the charts I have problem. when I change "Pie Chart" to Table I see my result in the $,Euro and IRR format! I think it's a bug maybe!

Enemy of can't
www.mrpowerbi.pro

Hi, did you have succes with this issue?

Yes u r exactly correct my friend . 

 

In Dax format function only accpet  " " , 

rest of the other currency handle as a text.

 

This is DAX function currently doing. 

Thanks a lot @Baskar

When you create a

calculated column and drag it to pie chart it is ok.

Let me say my exact problem:

 

1- Currency_Table:

 

 

CurrencyTypeRate
Euro 40,000.00
IRR1.00
Dollar35,000

 

2- This is a measure:

 

Sales_Amount_With_Currency =

IF(VALUES(Currency_Table[CurrencyType])="Dollar",FORMAT(ROUND(SUM(Sales_Table[Sales Values (Rial)])/[Dollar],0),"$#,##0.00;($ #,##0.00)") ,

IF(VALUES(Currency_Table[CurrencyType])="Euro",FORMAT(ROUND(SUM(Sales_Table[Sales Values (Rial)])/[Euro],0),

"€#,##0.00;(€ #,##0.00)"),FORMAT(ROUND(SUM(Sales_Table[Sales Values (Rial)])/1,0),"IRR #,##0.00;(IRR#,##0.00)"))

)

 

3- "Dollar","Euro","IRR" is a slicer.

 

I hope it is clear!

Thanks again for your time my friend 

Regards

Mostafa

Enemy of can't
www.mrpowerbi.pro

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.