Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I am wanting it to give me the result of a date minus one day if it is before 6:30 in the morning else use just the result of a date.
Solved! Go to Solution.
try like
if (WBoxCountTransactions[TimePoint] < time(06,30,00) ,
WBoxCountTransactions[Date Box Created] - 1,
WBoxCountTransactions[Date Box Created]
)
or
if (WBoxCountTransactions[TimePoint].time < time(06,30,00) ,
WBoxCountTransactions[Date Box Created] - 1,
WBoxCountTransactions[Date Box Created]
)
Hi @Ivolution93 ,
Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please upload some insensitive data samples and expected output.
Best Regards,
Eyelyn Qin
Hi @Ivolution93 ,
According to my understanding, you want to calculate the Date based on Time , right?
You could use TIMEVALUE() to compare time ,like the following formula:
Column =
IF (
WBoxCountTransactions[TimePoint] < TIMEVALUE ( "6:30 AM" ),
WBoxCountTransactions[Date Box Created].[Date] - 1,
WBoxCountTransactions[Date Box Created]
)My visualization looks like this:
Is the result what you want? If you have any questions, please upload some data samples and expected output.
Please do mask sensitive data before uploading.
Best Regards,
Eyelyn Qin
If this is for a calculated column, you can use the TIME function instead of putting the time in quotes.
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
try like
if (WBoxCountTransactions[TimePoint] < time(06,30,00) ,
WBoxCountTransactions[Date Box Created] - 1,
WBoxCountTransactions[Date Box Created]
)
or
if (WBoxCountTransactions[TimePoint].time < time(06,30,00) ,
WBoxCountTransactions[Date Box Created] - 1,
WBoxCountTransactions[Date Box Created]
)
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.