The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
I have a Calendar Table created in DAX
I have Calculated Column that says "True" for the date if it's the 3rd Saturday in that month, False otherwise
Now, I need another column called "Is My Monday" that should have "True" if that date is the Monday before the Third Saturday, "False" otherwise like this ->
How do I write a DAX expression for such a calculated column?
Solved! Go to Solution.
I think you can create a column like
Is My Monday =
IF (
WEEKDAY ( 'Date'[Date], 2 ) = 1,
VAR CurrentDate = 'Date'[Date]
VAR IsThirdSat =
LOOKUPVALUE ( 'Date'[Is Third Saturday], 'Date'[Date], CurrentDate + 5 )
RETURN
IF ( IsThirdSat, 1, 0 ),
0
)
I think you can create a column like
Is My Monday =
IF (
WEEKDAY ( 'Date'[Date], 2 ) = 1,
VAR CurrentDate = 'Date'[Date]
VAR IsThirdSat =
LOOKUPVALUE ( 'Date'[Is Third Saturday], 'Date'[Date], CurrentDate + 5 )
RETURN
IF ( IsThirdSat, 1, 0 ),
0
)
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
21 | |
19 | |
18 | |
17 | |
12 |
User | Count |
---|---|
36 | |
34 | |
20 | |
19 | |
15 |