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
shadow7
Regular Visitor

Summarize Date/time to Date and Lookup within same table

Hello Experts,

 

I need to summarize values at Date/time to Date and Lookup within same table based on Ship Date. As I am joining this data based on SHIPDT, would like to get the Other QTY details against SHIPDT. Tried Lookup/related/Treatas but no luck. Appreciate any help with this.

 

Thanks in advance.

Actual Data:                                                                                Expected Data:

shadow7_0-1703281091128.png        shadow7_1-1703281127533.png

CREATEDTOrder IDPROCESSING_QTYSHIPDTOrdered PairsPROCESSEDTSPROCESSED_QTY
12/10/2023 0:00ORDER-1 12/17/2023 0:001585  
12/11/2023 0:00ORDER-2 12/18/2023 0:003773  
12/12/2023 0:00ORDER-3 12/19/2023 0:005083  
12/13/2023 0:00ORDER-4 12/20/2023 0:008800  
12/14/2023 0:00ORDER-5 12/21/2023 0:003610  
12/15/2023 0:00ORDER-6193    
12/16/2023 0:00ORDER-7622    
12/18/2023 0:00ORDER-8831    
12/19/2023 0:00ORDER-94243    
12/20/2023 0:00ORDER-10182    
12/21/2023 0:00ORDER-11420    
12/22/2023 0:00ORDER-127417    
12/23/2023 0:00ORDER-13   12/18/2023 6:37252
12/24/2023 0:00ORDER-14   12/18/2023 6:48702
12/25/2023 0:00ORDER-15   12/18/2023 7:290
12/26/2023 0:00ORDER-16   12/18/2023 8:531
12/27/2023 0:00ORDER-17   12/18/2023 8:531
12/28/2023 0:00ORDER-18   12/18/2023 8:531
12/29/2023 0:00ORDER-19   12/18/2023 9:231
12/30/2023 0:00ORDER-20   12/18/2023 9:380
12/31/2023 0:00ORDER-21   12/18/2023 9:420
1/1/2024 0:00ORDER-22   12/18/2023 11:290
1/2/2024 0:00ORDER-23   12/18/2023 11:370
1/3/2024 0:00ORDER-24   12/18/2023 11:424
1/4/2024 0:00ORDER-25   12/18/2023 11:432
1/5/2024 0:00ORDER-26   12/18/2023 11:432
1/6/2024 0:00ORDER-27   12/18/2023 11:431
1/7/2024 0:00ORDER-28   12/18/2023 11:443
1/8/2024 0:00ORDER-29   12/18/2023 11:441
1/9/2024 0:00ORDER-30   12/18/2023 11:446
1/10/2024 0:00ORDER-31   12/18/2023 11:443
1/11/2024 0:00ORDER-32   12/19/2023 14:4612
1/12/2024 0:00ORDER-33   12/19/2023 14:558
1/13/2024 0:00ORDER-34   12/19/2023 15:051
1/14/2024 0:00ORDER-35   12/19/2023 15:441
1/15/2024 0:00ORDER-36   12/19/2023 22:474
1/16/2024 0:00ORDER-37   12/19/2023 22:501

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @shadow7 ,

You can create a measure or calculated column as below to get it:

Measure = 
VAR _shipdt =
    SELECTEDVALUE ( 'Table'[SHIPDT] )
RETURN
    CALCULATE (
        SUM ( 'Table'[PROCESSED_QTY] ),
        FILTER (
            ALLSELECTED ( 'Table' ),
            DATEVALUE ( 'Table'[PROCESSEDTS] ) = DATEVALUE ( _shipdt )
        )
    )

vyiruanmsft_0-1703481577653.png

Best Regards

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @shadow7 ,

You can create a measure or calculated column as below to get it:

Measure = 
VAR _shipdt =
    SELECTEDVALUE ( 'Table'[SHIPDT] )
RETURN
    CALCULATE (
        SUM ( 'Table'[PROCESSED_QTY] ),
        FILTER (
            ALLSELECTED ( 'Table' ),
            DATEVALUE ( 'Table'[PROCESSEDTS] ) = DATEVALUE ( _shipdt )
        )
    )

vyiruanmsft_0-1703481577653.png

Best Regards

lbendlin
Super User
Super User

Looks like your "Actual Data"  may be placing multiple tables on the same Excel (?)  sheet?  What's the importance of the Order ID column?  Where does the "Ordered Pairs"  term come from? Why is PROCESSING_QTY empty for the first orders?  Should PROCESSEDTS and PROCESSED_QTY be treated as its own table?

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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