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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
CHealy
Frequent Visitor

Making a column based of repeating data for a group of rows baes on the response of one of the rows

I am trying to make one column(date by group) all the same date based on a grouping. This is a survey based data set and I would like to a column where the date is the response date for the specific Grouped Column (Grouped column is an individual survey). There are to many questions to be able to pivot and unpivot the data. I am also trying to avoid making an additional table andlinking them based on the grouped column. Any Help would be amazing 

 

CHealy_0-1720640617284.png

 

 

1 ACCEPTED SOLUTION
v-kaiyue-msft
Community Support
Community Support

Hi @CHealy ,

 

1. In the power query editor, copy an original table.

vkaiyuemsft_0-1720665781841.png

 

2. Group and get the response date for each group.

vkaiyuemsft_1-1720665805553.png

 

3. perform a merge query on the two tables.

vkaiyuemsft_2-1720665814547.png

 

4. expand table2.

vkaiyuemsft_3-1720665823296.png

 

vkaiyuemsft_4-1720665840258.png

 

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

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

1 REPLY 1
v-kaiyue-msft
Community Support
Community Support

Hi @CHealy ,

 

1. In the power query editor, copy an original table.

vkaiyuemsft_0-1720665781841.png

 

2. Group and get the response date for each group.

vkaiyuemsft_1-1720665805553.png

 

3. perform a merge query on the two tables.

vkaiyuemsft_2-1720665814547.png

 

4. expand table2.

vkaiyuemsft_3-1720665823296.png

 

vkaiyuemsft_4-1720665840258.png

 

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Kudoed Authors