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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

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

Anonymous
Not applicable

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.