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

condition solve with "text"

Hello community,

 

I am trying to compare two columns with numbers, if it is true then show me "soy" 

I am doing with IF. it is working with numbers but not with text.

How can it run?

 
IF ( Tabla[risk_l] = Tabla[vspy],"soy",0 )
Many thanks
 
1 ACCEPTED SOLUTION
rsbin
Impactful Individual
Impactful Individual

@carenel,

Your new column cannot have multiple formats.  In other words you cannot mix text with numbers.

That is why it works when both are numbers.

Suggest you change 0 to "" or some other text string that makes sense for your situation.

Regards,

 

View solution in original post

2 REPLIES 2
rsbin
Impactful Individual
Impactful Individual

@carenel,

Your new column cannot have multiple formats.  In other words you cannot mix text with numbers.

That is why it works when both are numbers.

Suggest you change 0 to "" or some other text string that makes sense for your situation.

Regards,

 

View solution in original post

carenel
Frequent Visitor

many thanks...... it was so easy. 😀

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Power BI December 2021 Update_carousel 768x460.jpg

Check it Out!

Click here to read more about the December 2021 Updates!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Jan 2022 Dev Camp 768x460 copy.png

Power BI Dev Camp- January 27th, 2022

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors
Top Kudoed Authors