cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
GregDeckler

How to Get Your Question Answered Quickly

Power BI Super User, Greg Deckler, explains

Summit North America

Power Platform Summit North America

Register by September 5 to save $200

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.

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