Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I have a column with 60,000+ rows, the format of which is:
07:00
08:23
22:01
Any idea how I could apply a quick filter for times between 19:00 - 07:00?
Solved! Go to Solution.
Hi @johnbradbury,
Based on my test, you could refer to below formula:
Column = IF([Time]>=TIME(19,0,0)||[Time]<=TIME(7,0,0),1,0)
Result:
Regards,
Daniel He
Hi @johnbradbury,
Could you please tell me if your problem has been solved? If it is, could you please mark the helpful replies as Answered?
Regards,
Daniel He
Hi @johnbradbury,
Based on my test, you could refer to below formula:
Column = IF([Time]>=TIME(19,0,0)||[Time]<=TIME(7,0,0),1,0)
Result:
Regards,
Daniel He
Hi @johnbradbury,
You can filter the data inside Power Query by filtering on the time column
As part of your data import, do a "Split Columns by Delimiter". Now you have an Hours and Minutes column, setting as numeric. Set your filter to be if the hours column is greater than or equal to 19 or less than or equal to 7
If I do a filter of :
is greater than or equal to 19, and lower than or equal to 7
It shows 0 records. Which is strange because there are records in that range.
Change it from AND to OR
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
97 | |
84 | |
67 | |
60 |
User | Count |
---|---|
150 | |
120 | |
99 | |
87 | |
68 |