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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Combination of dates

Hello

 

I have three date columns in a dataset, which belong to different parameters (date 1 -> P1, P2 - date 2 -> P3, P4 - date 3 -> P5, P6). How can I combine them in a way that I only ended up in a date column (date -> P1, P2, P3, P4, P5, P6)? I also want to not have any dublication date in the final result. I tried to explain in the screenshots below.

Thank you for your tips on advanced!

 

 

 

1 ACCEPTED SOLUTION
v-yingjl
Community Support
Community Support

Hi @Anonymous ,

Based on your description, you can create a calculated table like this:

New Table =
VAR tab =
    ADDCOLUMNS (
        'Table',
        "Date",
            CALCULATE (
                MAX ( 'Table'[Date 1] ),
                FILTER ( ALL ( 'Table' ), 'Table'[Date 1] = EARLIER ( 'Table'[Date 1] ) )
            )
    )
VAR tb =
    SUMMARIZE (
        tab,
        [Date],
        [Parameter 1],
        [Paremeter 2],
        [Paremeter 3],
        [Parameter 4],
        [Paremeter 5],
        [Parameter 6]
    )
RETURN
    tb

re.png

Attached a sample file in the below, hopes to help you.

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yingjl
Community Support
Community Support

Hi @Anonymous ,

Based on your description, you can create a calculated table like this:

New Table =
VAR tab =
    ADDCOLUMNS (
        'Table',
        "Date",
            CALCULATE (
                MAX ( 'Table'[Date 1] ),
                FILTER ( ALL ( 'Table' ), 'Table'[Date 1] = EARLIER ( 'Table'[Date 1] ) )
            )
    )
VAR tb =
    SUMMARIZE (
        tab,
        [Date],
        [Parameter 1],
        [Paremeter 2],
        [Paremeter 3],
        [Parameter 4],
        [Paremeter 5],
        [Parameter 6]
    )
RETURN
    tb

re.png

Attached a sample file in the below, hopes to help you.

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

What I have tried myself is I duplicated the dataset two times, then keep date and related parameters in each dataset (and delete the rest): 

data set 1 => date 1, P1, P2

data set 2 => date 2, P3, P4

data set 3 => date 1, P5, P6

 

Then I changed name of date 1, date 2, and date 3 all to date and appened all three data sets. But I ended up in many dublication dates: 

 

5.JPG

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors