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 Guys,
Unofrnutultey I can't find opened thread for this issue.
All I'm trying to use is if the function and the return value are true should be the date column -1 day if false return the same day.
At first, I try to use:
if [Hour]>=0 and [Hour]<=5 then [Date]-1 else [Date]
But true value returnins if fales (because formating of the statemtn won't match )
The i try :
if [Hour]>=0 and [Hour]<=5 then Text.From(DateTime.Date(Date(Date.AddDays([Date],-1)))) else [Date]
Unfortunutelly still have error.
Please help!
Solved! Go to Solution.
Hi @Deimantas ,
This should work:
if [Hour] >= 0 and [Hour] <= 5 then Date.AddDays([Date], -1) else [Date]
Pete
Proud to be a Datanaut!
Hi @Deimantas ,
This should work:
if [Hour] >= 0 and [Hour] <= 5 then Date.AddDays([Date], -1) else [Date]
Pete
Proud to be a Datanaut!
Thank you for your replay, it's working!
Thanks.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
15 | |
14 | |
13 | |
12 | |
11 |