Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi,
I am trying to display the correct timing from my worker and I am having the issue where I need two dates (one for Start Time ; Stop Time).
Calendar [Date] is linked to DATA [StartDate] (active) and DATA [StopDate] (inactive)
In order to make it works, I need Start Time as Nov 13 (as slicer - MIN from PM) and Stop Time Nov 14 (MAX from AM).
Anyone know how to?
StopDateTime =
CALCULATE(
MAX(DATA[StopDateTime]),
FILTER(
all(DATA),
HOUR(DATA[StopDateTime]) < 12
),
USERELATIONSHIP(DATA[StopDate], 'Calendar'[Date])
)
let me know if this works for you .
Nope. All results are 2023-12-31 11:56:51AM. The result date doesnt match the Punch Out date...
Hi @jaysoulz ,
The DAX formula you provided seems almost correct, but I would suggest a slight modification:
StopDateTime =
CALCULATE(
MAX(DATA[StopDateTime]),
USERELATIONSHIP(DATA[StopDate], 'Calendar'[Date]),
FILTER(
ALL('Calendar'),
'Calendar'[Date] <= MAX('Calendar'[Date])
),
HOUR(DATA[StopDateTime]) < 12
)
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ Rongtie
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I change your DAX into
StopDateTimeRon =
CALCULATE(
MAX(REPORT[StopDateTime]),
USERELATIONSHIP(REPORT[StopDate], 'Calendar'[Date]),
FILTER(
ALL('Calendar'),
'Calendar'[Date] <= MAX(REPORT[StopDateTime])
),
HOUR(REPORT[StopDateTime]) < 12
)
However, it does not provide all the correct time:
Thanks for the help!
@jaysoulz , Try like
StopDateTime =
CALCULATE(CALCULATE(
MAX(DATA[StopDateTime]),USERELATIONSHIP(DATA[StopDate], 'Calendar'[Date]))
FILTER(
DATA,
HOUR(DATA[StopDateTime]) < 12
)
)
It does not seem to work:
Thanks for helping!
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 64 | |
| 51 | |
| 46 | |
| 23 | |
| 19 |
| User | Count |
|---|---|
| 139 | |
| 112 | |
| 51 | |
| 33 | |
| 29 |