cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AUS2029 Frequent Visitor
Frequent Visitor

PBI only recognize % as Text type after using Dax: Format ( value, "0.0%) - Help

Capture.PNG

 

Used below DAX to format set of numbers, inorder to show percentage as percentage, number as numbers.

 Value =  if([Value]<-1,[Value],if([Value]<1,FORMAT([Value],"0.0%"),[Value]))
 
eg: 100,000  will show as 100,000
  0.1 will show as 10%.
 
However, once used the above DAX, the % value cannot be treated as number, been recongized as TEXT only.
PBI will give error message, if want to do a simple subtraction such as 25% - 10% .
 
1 ACCEPTED SOLUTION

Accepted Solutions
tex628 New Contributor
New Contributor

Re: PBI only recognize % as Text type after using Dax: Format ( value, "0.0%) - Help

The FORMAT() syntax always converts the value to string. So if your aim is to make calculations it is not possible to use FORMAT().

To my knowledge you will not be able to mix percentage with number formatting while still maintaining numeric format on your column/measure.

1 REPLY 1
tex628 New Contributor
New Contributor

Re: PBI only recognize % as Text type after using Dax: Format ( value, "0.0%) - Help

The FORMAT() syntax always converts the value to string. So if your aim is to make calculations it is not possible to use FORMAT().

To my knowledge you will not be able to mix percentage with number formatting while still maintaining numeric format on your column/measure.

Helpful resources

Announcements
Back to School Contest

Back to School Contest

Engage and empower students with Power BI!

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Summit Australia 2019

Summit Australia 2019

Travel to Melbourne and network with thousands of peers!

PBI Community Highlights

PBI Community Highlights

Check out what's new in the Power BI Community!

Top Ideas
Users Online
Currently online: 208 members 1,792 guests
Please welcome our newest community members: