cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
smartbi123 Regular Visitor
Regular Visitor

replace number to string

card.PNG

           Hi, 

              How to convert "99990.0%" to NA, others remain same? I tried to use if statement, but got error message. Thanks!

                 

2 REPLIES 2
Moderator v-qiuyu-msft
Moderator

Re: replace number to string

Hi @smartbi123

 

If values 999900.0% and 100.0% come from a measure, you can modify the measure like below: 

 

Measure=IF(MAX(Table1[Column1])=9999,"N/A",MAX(Table1[Column1]))

 

q2.PNG

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
smartbi123 Regular Visitor
Regular Visitor

Re: replace number to string

Hi Yu,

           thanks for reply. The column comes from table(not calculated measure or calculated column). I applied the formular "Measure=IF(MAX(Table1[Column1])=9999,"N/A",MAX(Table1[Column1]))"
which you provided , but I got the error message:Capture.PNG

             I can't replace 99999 to 0,  have to replace 9999 to NA for business purpose. Another solution?

             Thanks!

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

New Badges

Incoming: New and Improved Badges

Exciting news: We've given our badges an overhaul and added brand news ones.

Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 302 members 2,985 guests
Please welcome our newest community members: