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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
powerbidev123
Resolver II
Resolver II

Need help with formatting

powerbidev123_0-1736774111664.png

How can i fix this error.

 

TIA

1 ACCEPTED SOLUTION
DataNinja777
Super User
Super User

Hi @powerbidev123 ,

 

Please try the following instead.

Login Status = IF(Query1[LastLogIn] = BLANK(), "Yet to Login", FORMAT(Query1[LastLogIn], "YYYY-MM-DD"))

 

This ensures that both return values are Text, avoiding type mismatch errors.

 

Best regards,

 

View solution in original post

2 REPLIES 2
powerbidev123
Resolver II
Resolver II

Thanks @DataNinja777 

DataNinja777
Super User
Super User

Hi @powerbidev123 ,

 

Please try the following instead.

Login Status = IF(Query1[LastLogIn] = BLANK(), "Yet to Login", FORMAT(Query1[LastLogIn], "YYYY-MM-DD"))

 

This ensures that both return values are Text, avoiding type mismatch errors.

 

Best regards,

 

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.