cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Lyhis
Helper IV
Helper IV

Change True/False data type to Passed/Failed

Hi

 

I'm running a report in Direct Query. 1 Table has values "True" or "False". Data type - "true/false". I need to change it to "Passed/failed". So far everything I've tried wants to force me to import mode which I don't want.

1 ACCEPTED SOLUTION
amitchandak
Super User IV
Super User IV

@Lyhis , in this case you should be able to create a new column in direct query

if([Col], "passed","failed")

or

if([col]= true(), "passed","failed")



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

2 REPLIES 2
Tahreem24
Super User II
Super User II

@Lyhis , Try this:

Column  = IF(TableName[Type]="TRUE","PASSED",IF(TableName[Type]="FALSE","FAILED"))
 
Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, and Sales Analysis Report
amitchandak
Super User IV
Super User IV

@Lyhis , in this case you should be able to create a new column in direct query

if([Col], "passed","failed")

or

if([col]= true(), "passed","failed")



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

Helpful resources

Announcements
User Groups Public Preview

Join us for our User Group Public Preview!

Power BI User Groups are coming! Make sure you’re among the first to know when user groups go live for public preview.

March Update

Check it Out!

Click here to read more about the March 2021 Updates!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.