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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
koyDominic
Regular Visitor

How to show that "day name" is true or false

Hi,

 

I created a new column to show whether the result is true or false. What will be my DAX to have the result whether the day name (ex. Wednesday and Friday) is true? MicrosoftTeams-image (10).png

2 ACCEPTED SOLUTIONS
SamInogic
Super User
Super User

Hi @koyDominic ,

In power BI, there is a function WEEKDAY(Date) which gives integer value starting Sunday as 1 so if you want to get DAX to check if Day of Date is Wednesday then follow below steps:

Create a new column with below DAX expression:

IsWednesday = IF(WEEKDAY('Date Table'[Column1].[Date]) =4, TRUE(), FALSE())

 

Please refer to the below screenshot,

SamInogic_0-1681901777261.png

If this answer helps, please mark it as an Accepted Solution so it would help others to find the solution.


Thanks!

Inogic Professional Service Division

An expert technical extension for your techno-functional business needs

Power Platform/Dynamics 365 CRM

Drop an email at crm@inogic.com

Service:  http://www.inogic.com/services/ 

Power Platform/Dynamics 365 CRM Tips and Tricks:  http://www.inogic.com/blog/

Inogic Professional Services: Power Platform/Dynamics 365 CRM
An expert technical extension for your techno-functional business needs
Drop an email at crm@inogic.com
Service: https://www.inogic.com/services/
Tips and Tricks: https://www.inogic.com/blog/

View solution in original post

Hi @koyDominic ,

You have to change the DAX expression as below in order to get True for Day either Monday, Tuesday or Wednesday.

CheckDay = IF(WEEKDAY('Date Table'[Column1].[Date]) =4 || WEEKDAY('Date Table'[Column1].[Date]) = 2 || WEEKDAY('Date Table'[Column1].[Date]) = 3 , TRUE(), FALSE())


Please refer to the below screenshot for the same,

SamInogic_0-1681964238362.png

If this answer helps, please mark it as an Accepted Solution so it would help others to find the solution.


Thanks!

Inogic Professional Service Division

An expert technical extension for your techno-functional business needs

Power Platform/Dynamics 365 CRM

Drop an email at crm@inogic.com

Service:  http://www.inogic.com/services/ 

Power Platform/Dynamics 365 CRM Tips and Tricks:  http://www.inogic.com/blog/

Inogic Professional Services: Power Platform/Dynamics 365 CRM
An expert technical extension for your techno-functional business needs
Drop an email at crm@inogic.com
Service: https://www.inogic.com/services/
Tips and Tricks: https://www.inogic.com/blog/

View solution in original post

4 REPLIES 4
koyDominic
Regular Visitor

@SamInogic ,these works perfectly. Thanks

 

How about If I have multiple days to identify, like Monday, Tuesday and Wednesday to be "true". 

Hi @koyDominic ,

You have to change the DAX expression as below in order to get True for Day either Monday, Tuesday or Wednesday.

CheckDay = IF(WEEKDAY('Date Table'[Column1].[Date]) =4 || WEEKDAY('Date Table'[Column1].[Date]) = 2 || WEEKDAY('Date Table'[Column1].[Date]) = 3 , TRUE(), FALSE())


Please refer to the below screenshot for the same,

SamInogic_0-1681964238362.png

If this answer helps, please mark it as an Accepted Solution so it would help others to find the solution.


Thanks!

Inogic Professional Service Division

An expert technical extension for your techno-functional business needs

Power Platform/Dynamics 365 CRM

Drop an email at crm@inogic.com

Service:  http://www.inogic.com/services/ 

Power Platform/Dynamics 365 CRM Tips and Tricks:  http://www.inogic.com/blog/

Inogic Professional Services: Power Platform/Dynamics 365 CRM
An expert technical extension for your techno-functional business needs
Drop an email at crm@inogic.com
Service: https://www.inogic.com/services/
Tips and Tricks: https://www.inogic.com/blog/

Works perfectly!! Thanks @SamInogic 

SamInogic
Super User
Super User

Hi @koyDominic ,

In power BI, there is a function WEEKDAY(Date) which gives integer value starting Sunday as 1 so if you want to get DAX to check if Day of Date is Wednesday then follow below steps:

Create a new column with below DAX expression:

IsWednesday = IF(WEEKDAY('Date Table'[Column1].[Date]) =4, TRUE(), FALSE())

 

Please refer to the below screenshot,

SamInogic_0-1681901777261.png

If this answer helps, please mark it as an Accepted Solution so it would help others to find the solution.


Thanks!

Inogic Professional Service Division

An expert technical extension for your techno-functional business needs

Power Platform/Dynamics 365 CRM

Drop an email at crm@inogic.com

Service:  http://www.inogic.com/services/ 

Power Platform/Dynamics 365 CRM Tips and Tricks:  http://www.inogic.com/blog/

Inogic Professional Services: Power Platform/Dynamics 365 CRM
An expert technical extension for your techno-functional business needs
Drop an email at crm@inogic.com
Service: https://www.inogic.com/services/
Tips and Tricks: https://www.inogic.com/blog/

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.