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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
hey guys, I have a data that looks like below:
and I want to show the latest time-out date, but if it's blank then it should show blank instead of the other log-out time like below:
Appreciate any help!
Solved! Go to Solution.
Hi,
I am not sure how your semantic mode looks like, but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
Earliest timein: =
MINX (
SUMMARIZE ( data, user[user], data[time_in] ),
CALCULATE ( MIN ( data[time_in] ) )
)
Latest timeout: =
VAR _t =
SUMMARIZE ( data, user[user], data[time_in] )
VAR _result =
MAXX ( _t, CALCULATE ( MAX ( data[time_out] ) ) )
VAR _condition =
COUNTROWS ( FILTER ( _t, CALCULATE ( MAX ( data[time_out] ) ) = BLANK () ) ) > 0
RETURN
IF ( _condition, BLANK (), _result )
Hello @non23 ,
If I understand correctly, you want the earliest timein and latest timeout per user in two different measures.
Hello @non23 ,
If I understand correctly, you want the earliest timein and latest timeout per user in two different measures.
Hi,
I am not sure how your semantic mode looks like, but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
Earliest timein: =
MINX (
SUMMARIZE ( data, user[user], data[time_in] ),
CALCULATE ( MIN ( data[time_in] ) )
)
Latest timeout: =
VAR _t =
SUMMARIZE ( data, user[user], data[time_in] )
VAR _result =
MAXX ( _t, CALCULATE ( MAX ( data[time_out] ) ) )
VAR _condition =
COUNTROWS ( FILTER ( _t, CALCULATE ( MAX ( data[time_out] ) ) = BLANK () ) ) > 0
RETURN
IF ( _condition, BLANK (), _result )