The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
im trying to calculate the orders that are placed between 10:00 PM and 8:00 AM using the hour function however im getting a blank value .
can someone help me with this
@lawada , It need to be OR (|| )
calculate(count(Orders[Order_id]), filter(Orders,hour(orders[placed order date]) >=22 || hour(orders[placed order date]) < 8))
@lawada
Try this measure please:
Later Order10 =
CALCULATE(
COUNTROWS( Table01 ),
var __hour = HOUR(Table01[Placed Order Date]) return
__hour >= 22 || __hour < 8
)
________________________
If my answer was helpful, please click Accept it as the solution to help other members find it useful
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
User | Count |
---|---|
15 | |
13 | |
8 | |
6 | |
6 |
User | Count |
---|---|
27 | |
19 | |
12 | |
9 | |
7 |