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 data set as shown below.
I want to filter my date between 10-04-23 00:00 to 10-04-23 23:59 and keep the rows.
how can I do this??
Work Order | Work Order Date |
WO1 | 10-04-2023 04:35 |
WO2 | 10-04-2023 10:00 |
WO3 | 10-04-2023 12:00 |
WO4 | 10-04-2023 15:30 |
WO5 | 10-04-2023 19:30 |
WO6 | 10-04-2023 20:00 |
WO7 | 10-04-2023 22:00 |
WO8 | 09-04-2023 10:00 |
WO9 | 08-04-2023 09:00 |
WO10 | 07-04-2023 22:00 |
WO11 | 09-04-2023 11:00 |
WO12 | 08-04-2023 15:00 |
WO13 | 07-04-2023 23:00 |
WO14 | 09-04-2023 08:00 |
WO15 | 08-04-2023 16:00 |
WO16 | 07-04-2023 17:00 |
Solved! Go to Solution.
@prashantg364 , if you need to use Summarize function, here is the code that might work for you:
Table 2 =
SUMMARIZE (
FILTER (
'Table',
DATEVALUE ( 'Table'[Work Order Date] ) = DATE ( 2023, 04, 10 )
),
'Table'[Work Order],
'Table'[Work Order Date]
)
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your Kudos.
Check out my latest demo report in the data story gallery.
Stand with Ukraine!
Here are official ways you can support Ukraine financially (accounts with multiple currencies):
1) Support the Armed Forces of Ukraine: https://bank.gov.ua/ua/about/support-the-armed-forces
2) Come Back Alive foundation: https://www.comebackalive.in.ua/
Thank you!
Hi @prashantg364,
Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.
If these also don't help, please share more detailed information and description to help us clarify your scenario to test.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
there are many ways to do so. what do you plan to do with the filtered data?
I want to summarize a table with only filtered day/time rows.
supposing you have a value column, try like:
My data set
table 1
Work Order | Work Order Date |
WO1 | 10-04-2023 04:35 |
WO2 | 10-04-2023 10:00 |
WO3 | 10-04-2023 12:00 |
WO4 | 10-04-2023 15:30 |
WO5 | 10-04-2023 19:30 |
WO6 | 10-04-2023 20:00 |
WO7 | 10-04-2023 22:00 |
WO8 | 09-04-2023 10:00 |
WO9 | 08-04-2023 09:00 |
WO10 | 07-04-2023 22:00 |
WO11 | 09-04-2023 11:00 |
WO12 | 08-04-2023 15:00 |
WO13 | 07-04-2023 23:00 |
WO14 | 09-04-2023 08:00 |
WO15 | 08-04-2023 16:00 |
WO16 | 07-04-2023 17:00 |
After filtering the rows for a specific date
I want to create a new table 2 using summarize function
Table 2 looks like
Work Order | Work Order Date |
WO1 | 10-04-2023 04:35 |
WO2 | 10-04-2023 10:00 |
WO3 | 10-04-2023 12:00 |
WO4 | 10-04-2023 15:30 |
WO5 | 10-04-2023 19:30 |
WO6 | 10-04-2023 20:00 |
WO7 | 10-04-2023 22:00 |
from table1 to table2, you don't need to summarize, just filter it, like:
or?
@prashantg364 , if you need to use Summarize function, here is the code that might work for you:
Table 2 =
SUMMARIZE (
FILTER (
'Table',
DATEVALUE ( 'Table'[Work Order Date] ) = DATE ( 2023, 04, 10 )
),
'Table'[Work Order],
'Table'[Work Order Date]
)
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your Kudos.
Check out my latest demo report in the data story gallery.
Stand with Ukraine!
Here are official ways you can support Ukraine financially (accounts with multiple currencies):
1) Support the Armed Forces of Ukraine: https://bank.gov.ua/ua/about/support-the-armed-forces
2) Come Back Alive foundation: https://www.comebackalive.in.ua/
Thank you!
Hey @prashantg364 ,
If this is what you mean: Show items with no data in Power BI - Power BI | Microsoft Learn
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your Kudos.
Check out my latest demo report in the data story gallery.
Stand with Ukraine!
Here are official ways you can support Ukraine financially (accounts with multiple currencies):
1) Support the Armed Forces of Ukraine: https://bank.gov.ua/ua/about/support-the-armed-forces
2) Come Back Alive foundation: https://www.comebackalive.in.ua/
Thank you!
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 |
---|---|
49 | |
26 | |
21 | |
16 | |
12 |
User | Count |
---|---|
57 | |
49 | |
44 | |
19 | |
18 |