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
FRG
Resolver I
Resolver I

Add the same date to many rows

Hi,

In this table I want to add the reel starting date for all row with the same description:Capture.JPG

 

Like this:

For all rows with F26 in description: 2018-06-06 11:58:43 for Reel_Start_Date

For all rows with C31 in description: 2018-05-30 09:21:28 for Reel_Start_Date.

For all rows with E76 in description: 2018-05-22 22:09:39 for Reel_Start_Date.

Etc.

Thanks 

1 ACCEPTED SOLUTION

Hi FRG,

 

When a new row has been added, the calculate column can also work. Do you mean the new row be added is not in your three conditions? If you are, you can add another condition in the switch block.

 

Regards,

Jimmy Tao

View solution in original post

3 REPLIES 3
v-yuta-msft
Community Support
Community Support

Hi FRG,

 

Create a calculate column [Reel_Start_Date] using DAX formula as below and check if it works well.

 

Reel_Start_Date =
SWITCH (
    table[description],
    "F26", "2018-06-06 11:58:43",
    "C31", "2018-06-06 11:58:43",
    "E76", "2018-05-22 22:09:39"
)

You can click Reel_Start_Date column and change type from text to datetime through clicking Modeling->Format.

 

Hope it's helpful to you.

 

Jimmy Tao

Hi @v-yuta-msft,

It works well but when a new row with a new description will appear I will have to modify my formula. Can we do it to create the Reel_Start_Date automatically?

Thanks

Hi FRG,

 

When a new row has been added, the calculate column can also work. Do you mean the new row be added is not in your three conditions? If you are, you can add another condition in the switch block.

 

Regards,

Jimmy Tao

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.