Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreThe FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now
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
Solved! Go to Solution.
Hi @Anonymous ,
Here are the steps you can follow:
1. In Power Query -- Add Column – Index Column – From 1.
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:
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
= 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]}})
= 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]}})
Hi @Anonymous ,
Here are the steps you can follow:
1. In Power Query -- Add Column – Index Column – From 1.
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:
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
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 52 | |
| 44 | |
| 44 | |
| 20 | |
| 19 |
| User | Count |
|---|---|
| 71 | |
| 70 | |
| 34 | |
| 33 | |
| 31 |