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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
Anonymous
Not applicable

FillUp Table in column 1 based on unique value in column 2

2023-07-20 152729.png

If Column 1, row 1 and 2 are the same, fill up column 3 with value below.

 

Row 1, column 3 desired outcome is 24-10-2022. Row 14,15,16 remain null or empty.

Row 17, clomun 3 desired outcome is value from row 18

 

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Hi  @Anonymous ,

 

 

Here are the steps you can follow:

1. In Power Query -- Add Column – Index Column – From 1.

vyangliumsft_0-1690262091259.png

2. Create calculated column.

Flag =
var _min=
MINX(
    FILTER(ALL(Table1),'Table1'[Project]=EARLIER('Table1'[Project])),[Index])
var _flag1=
MAXX(
    FILTER(ALL(Table1),'Table1'[Index]=_min&&'Table1'[Project]=EARLIER('Table1'[Project])),[Project])
var _flag2=
MAXX(
    FILTER(ALL(Table1),'Table1'[Index]=_min+1&&'Table1'[Project]=EARLIER('Table1'[Project])),[Project])
return
IF(
    _flag1=_flag2&&'Table1'[Index]=_min,
    MAXX(
    FILTER(ALL(Table1),'Table1'[Index]=_min+1&&'Table1'[Project]=EARLIER('Table1'[Project])),[Date2]),[Date2])

3. Result:

vyangliumsft_1-1690262091261.png

 

 

Best Regards,

Liu Yang

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

Anonymous
Not applicable

= Table.Group(#"Kolommen verwijderd1", {"Projectnummer"}, {{"Aantal", each Table.FillUp(_, {"WIBON Tool"}), type table [Binnen=nullable date, WIBON Tool=nullable date, Projectnummer=text, Aangepast=nullable date]}})

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

= Table.Group(#"Kolommen verwijderd1", {"Projectnummer"}, {{"Aantal", each Table.FillUp(_, {"WIBON Tool"}), type table [Binnen=nullable date, WIBON Tool=nullable date, Projectnummer=text, Aangepast=nullable date]}})

Anonymous
Not applicable

Hi  @Anonymous ,

 

 

Here are the steps you can follow:

1. In Power Query -- Add Column – Index Column – From 1.

vyangliumsft_0-1690262091259.png

2. Create calculated column.

Flag =
var _min=
MINX(
    FILTER(ALL(Table1),'Table1'[Project]=EARLIER('Table1'[Project])),[Index])
var _flag1=
MAXX(
    FILTER(ALL(Table1),'Table1'[Index]=_min&&'Table1'[Project]=EARLIER('Table1'[Project])),[Project])
var _flag2=
MAXX(
    FILTER(ALL(Table1),'Table1'[Index]=_min+1&&'Table1'[Project]=EARLIER('Table1'[Project])),[Project])
return
IF(
    _flag1=_flag2&&'Table1'[Index]=_min,
    MAXX(
    FILTER(ALL(Table1),'Table1'[Index]=_min+1&&'Table1'[Project]=EARLIER('Table1'[Project])),[Date2]),[Date2])

3. Result:

vyangliumsft_1-1690262091261.png

 

 

Best Regards,

Liu Yang

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

foodd
Community Champion
Community Champion

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.