Skip to main content
Showing results for 
Search instead for 
Did you mean: 

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

New Member

Power BI IF statement

Please advise



Weekend = IF (IsWeekend =1, "Yes", "No")
Unless I put my 1 in "" (Weekend = IF (IsWeekend ="1", "Yes", "No")), Power BI sees the entire statement as the logical test. Point is, either way my formula does not work. A colleague can do the exact same formula and it works.
Super User
Super User

I hope you are creating it as a column and IsWeekend is also a column. And data time is the whole number.

Weekend = IF (Table[IsWeekend] =1, "Yes", "No")


Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges

Connect on Linkedin

Community Champion
Community Champion

Hi @Heinre 

it's because of data type

if your column IsWeekend has the Number type you should compare it without quotas =1

If IsWeekend is a text  type you should compare it with quotas ="1"


or try

Weekend = IF (VALUE(IsWeekend) =1, "Yes", "No")


Weekend = IF (IsWeekend=VALUE("1"), "Yes", "No")


do not hesitate to give a kudo to useful posts and mark solutions as solution

do not hesitate to give a kudo to useful posts and mark solutions as solution

Helpful resources

Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors