Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Solved! Go to Solution.
Hi @Roxy_Kdk
Please try below code
IN is better, when you are using OR function
Weekend =
IF('Calendar'[Day Name] IN {"Sunday","Saturday"}
,"Y"
,"N")
or
Weekend =
IF('Calendar'[Day Name]="Sunday" || 'Calendar'[Day Name]="Saturday",
,"Y"
,"N")
Let me know if that works for you
If your requirement is solved, please mark THIS ANSWER as SOLUTION ✔️ and help other users find the solution quickly. Please hit the LIKE 👍 button if this comment helps you.
Thanks
Pijush
Linkedin
Proud to be a Super User! | |
Hello,
Try this where you replace // with || in the formula.
Weekend =
IF(
'Calendar'[Day Name] = "Sunday" || 'Calendar'[Day Name] = "Saturday",
"Y",
"N"
)
Hello,
Try this where you replace // with || in the formula.
Weekend =
IF(
'Calendar'[Day Name] = "Sunday" || 'Calendar'[Day Name] = "Saturday",
"Y",
"N"
)
Hi @Roxy_Kdk
Please try below code
IN is better, when you are using OR function
Weekend =
IF('Calendar'[Day Name] IN {"Sunday","Saturday"}
,"Y"
,"N")
or
Weekend =
IF('Calendar'[Day Name]="Sunday" || 'Calendar'[Day Name]="Saturday",
,"Y"
,"N")
Let me know if that works for you
If your requirement is solved, please mark THIS ANSWER as SOLUTION ✔️ and help other users find the solution quickly. Please hit the LIKE 👍 button if this comment helps you.
Thanks
Pijush
Linkedin
Proud to be a Super User! | |
It worked . Thanks!
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 56 | |
| 40 | |
| 36 | |
| 20 | |
| 18 |
| User | Count |
|---|---|
| 73 | |
| 73 | |
| 38 | |
| 35 | |
| 26 |