Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. 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.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 48 | |
| 40 | |
| 40 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 70 | |
| 67 | |
| 32 | |
| 27 | |
| 26 |