Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
prashantg364
Helper II
Helper II

Filter rows

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 OrderWork Order Date
WO110-04-2023 04:35
WO210-04-2023 10:00
WO310-04-2023 12:00
WO410-04-2023 15:30
WO510-04-2023 19:30
WO610-04-2023 20:00
WO710-04-2023 22:00
WO809-04-2023 10:00
WO908-04-2023 09:00
WO1007-04-2023 22:00
WO1109-04-2023 11:00
WO1208-04-2023 15:00
WO1307-04-2023 23:00
WO1409-04-2023 08:00
WO1508-04-2023 16:00
WO1607-04-2023 17:00
1 ACCEPTED SOLUTION
ERD
Community Champion
Community Champion

@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!

View solution in original post

8 REPLIES 8
Anonymous
Not applicable

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

FreemanZ
Super User
Super User

hi @prashantg364 

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.

hi  @prashantg364

supposing you have a value column, try like:

Measure =
CALCULATE(    
    SUM(TableName[Value]),
    TableName[Work Order Date]=DATE(2023,4,10)
)

 

My data set
table 1

Work OrderWork Order Date
WO110-04-2023 04:35
WO210-04-2023 10:00
WO310-04-2023 12:00
WO410-04-2023 15:30
WO510-04-2023 19:30
WO610-04-2023 20:00
WO710-04-2023 22:00
WO809-04-2023 10:00
WO908-04-2023 09:00
WO1007-04-2023 22:00
WO1109-04-2023 11:00
WO1208-04-2023 15:00
WO1307-04-2023 23:00
WO1409-04-2023 08:00
WO1508-04-2023 16:00
WO1607-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 OrderWork Order Date
WO110-04-2023 04:35
WO210-04-2023 10:00
WO310-04-2023 12:00
WO410-04-2023 15:30
WO510-04-2023 19:30
WO610-04-2023 20:00
WO710-04-2023 22:00



from table1 to table2, you don't need to summarize, just filter it, like:

Measure =
FILTER(    
    TableName
    TableName[Work Order Date]=DATE(2023,4,10)
)
 

or?

ERD
Community Champion
Community Champion

@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!

ERD
Community Champion
Community Champion

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!

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.