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.
How I can calculate based on hours.. for example all the sales of Friday after 10pm should be count as Monday sales
Solved! Go to Solution.
@koralillis Something like this. i think that's what you are asking for?
SWITCH(
TRUE(),
Day IN {"Saturday", "Sunday"}, "Monday",
Day = "Friday" && HourOfDay >= 22, "Monday",
Day = "Sunday", "Monday",
"WorkWeek")
@koralillis Something like this. i think that's what you are asking for?
SWITCH(
TRUE(),
Day IN {"Saturday", "Sunday"}, "Monday",
Day = "Friday" && HourOfDay >= 22, "Monday",
Day = "Sunday", "Monday",
"WorkWeek")
@koralillis , In this logic, put an additional filter of 10 AM. OF create a date column, which move you friday date after 10 AM to Monday
https://amitchandak.medium.com/power-bi-show-weekend-data-on-monday-or-friday-dab5ee201f0e
New Date = Switch(True(),
weekDay([Date],2) =5 && Timevalue([Datetime]) >time(10,0,0), [Date]+3,
weekDay([Date],2) =6 , [Date]+2,
weekDay([Date],2) =7 , [Date]+1,
[Date]
)
Now use this new date
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 |
---|---|
102 | |
68 | |
48 | |
40 | |
34 |
User | Count |
---|---|
154 | |
112 | |
60 | |
54 | |
35 |