Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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?
Solved! Go to Solution.
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,
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/
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,
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/
@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,
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/
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,
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/
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
25 | |
18 | |
18 | |
17 | |
16 |
User | Count |
---|---|
29 | |
27 | |
19 | |
15 | |
14 |