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

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.

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

@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
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
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?

@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
Super User
Super User

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors