Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi folks,
I've got a basic Date table with a DIMDate[Date] primary key.
I'm trying to create a boolean calculated column that determines if the [Date] is part of a completed school year. New school years start at the Month of September. Here's what I've tried with no luck:
School Year Completed =
VAR YearCheck = YEAR(DIMDate[Date]) <= YEAR(Today())
VAR MonthCheck = MONTH(DIMDate[Date]) < 9
VAR Result = YearCheck && MonthCheck
RETURN Result
My table has data from January 1, 2015 through December 31, 2022. I expect the DAX to return TRUE for all dates up to August 31, 2022, and FALSE thereafter. But not working. It is ignoring my YearCheck condition, and returning FALSE in any year so long as month greater than or equal to 9
Solved! Go to Solution.
aha, try this
try this,
Still no luck:
aha, try this
Boom! The converse logic works! Thanks much.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
14 | |
10 | |
9 | |
8 | |
6 |
User | Count |
---|---|
13 | |
12 | |
11 | |
10 | |
10 |