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.
Hello,
I have a mastercalendar with all dates and a flag 1 or 0 , for each day if its a productive day or not.
Monday til friday the flag is 1, Saturday and Sunday its 0.
That mastercalendar is connected to a factable column called NOWTIME where I simply pull the now UTC time as date :
NOWTIMEUTC].[Date]
I now want to make a additional calculated column to check if the next day is a productive day whenever I make Dataset refresh:
CheckIFNextDayISProductive=
IF( Related(Mastercalendar[Date]) = NEXTDAY(Facttable[NOWTIMEUTC].[Date]) && Related(Mastercalendar[ProduductiveDay]) = 1, 1, 0)
I always get 0, so there is something wrong with the syntax I guess.
Thank you very much in advance.
Best.
Solved! Go to Solution.
please try
CheckIFNextDayISProductive =
IF (
RELATED ( Mastercalendar[Date] ) = Facttable[NOWTIMEUTC].[Date] + 1
&& RELATED ( Mastercalendar[ProduductiveDay] ) = 1,
1,
0
)
please try
CheckIFNextDayISProductive =
IF (
RELATED ( Mastercalendar[Date] ) = Facttable[NOWTIMEUTC].[Date] + 1
&& RELATED ( Mastercalendar[ProduductiveDay] ) = 1,
1,
0
)
I don't think that's how you're supposed to use nextday function. If you wanna compare a date and the next day, you can use the date function like in the following:
The next day = DATE(YEAR(YOURDATE), MONTH(YOURDATE), DAY(YOURDATE)+1)
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 |
---|---|
99 | |
69 | |
46 | |
39 | |
33 |
User | Count |
---|---|
163 | |
110 | |
61 | |
51 | |
40 |