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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

New column that repeats value into each row based on value in existing rows

Hey all, 

I think that this has an easy solution, but I'm a little rusty with Power BI.

I've been able to isolate dates that I need based on other parameters, which allowed me to establish a CC and OA date per SOW.  (SOW, CC and OA are good.)

Now I need to calculate the columns for New CC and New OA.  These are just a repeat of the values from CC and OA, but the value fills every row, based on SOW. The general logic is 'for each row in SOW X, look for a date in column CC and populate to all rows in New CC'. Repeat for OA/New OA.

 

Can anybody point me in the direction of which function I should use? I understand that this is probably also solvable with PowerQuery but for reasons I want to solve it in DAX.

 

SOWCCOANew CCNew OA
1111  1/30/20212/3/2021
1111  1/30/20212/3/2021
11111/30/2021 1/30/20212/3/2021
1111  1/30/20212/3/2021
1111 2/3/20211/30/20212/3/2021
2222  3/6/20213/10/2021
2222  3/6/20213/10/2021
22223/6/2021 3/6/20213/10/2021
2222 3/10/20213/6/20213/10/2021
3333  2/18/20213/20/2021
3333 3/20/20212/18/20213/20/2021
3333  2/18/20213/20/2021
33332/18/2021 2/18/20213/20/2021
3333  2/18/20213/20/2021
4444  6/1/20216/15/2021
4444  6/1/20216/15/2021
4444  6/1/20216/15/2021
44446/1/2021 6/1/20216/15/2021
4444 6/15/20216/1/20216/15/2021
4444  6/1/20216/15/2021

 

1 ACCEPTED SOLUTION
AlB
Community Champion
Community Champion

Hi @Anonymous 

Create calculated columns:

New CC =
CALCULATE ( MAX ( Table1[CC] ), ALLEXCEPT ( Table1, Table1[SOW] ) )
New OA =
CALCULATE ( MAX ( Table1[OA] ), ALLEXCEPT ( Table1, Table1[SOW] ) )

 

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

 

SU18_powerbi_badge

View solution in original post

2 REPLIES 2
AlB
Community Champion
Community Champion

Hi @Anonymous 

Create calculated columns:

New CC =
CALCULATE ( MAX ( Table1[CC] ), ALLEXCEPT ( Table1, Table1[SOW] ) )
New OA =
CALCULATE ( MAX ( Table1[OA] ), ALLEXCEPT ( Table1, Table1[SOW] ) )

 

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

 

SU18_powerbi_badge

Anonymous
Not applicable

Thanks millions!  This is exactly it!

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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