Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.
Hi,
Have a table with dates in it (date and time) how can we best filter this table to only include those rows where the time is between midnight and 10.00 a.m and then get the maximimum of those rows?
Thanks
Solved! Go to Solution.
Hi @po
You may create date and time columns as requested.Then use the above mentioned workaround.
Regards,
Hi @po
You may try below measures:
Filter = IF ( MAX ( 'Table'[Time] ) <= TIME ( 10, 0, 0 ) && MAX ( 'Table'[Time] ) >= TIME ( 0, 0, 0 ), 1 )
Max_time = VAR max_time = CALCULATE ( MAX ( 'Table'[Time] ), FILTER ( ALLEXCEPT ( 'Table', 'Table'[Date] ), [Filter] = 1 ) ) RETURN IF ( MAX ( 'Table'[Time] ) = max_time, MAX ( 'Table'[Time] ) )
Regards,
Hi
Thanks for reply.
Aplogies - I didn't make clear the data and time are one column e.g 01/05/2019 09:00:00
Thanks
Hi @po
You may create date and time columns as requested.Then use the above mentioned workaround.
Regards,
Thanks for update
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
72 | |
67 | |
67 | |
42 | |
42 |
User | Count |
---|---|
46 | |
40 | |
28 | |
26 | |
25 |