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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
powerbiAG
Frequent Visitor

DAX in Power Query of Data Flow

We have developed a piece of DAX code to get (lookup) dates from another table and populate in current table...

screenshot below for reference.....

 

 

powerbiAG_0-1681475855525.png

 

 

Can we do something similar in Power Query while loading data using Data Flow ?

 

Any guidelines or pointers in the right dierction would be much appreciated.

 

Thanks

1 REPLY 1
Anonymous
Not applicable

Hi @powerbiAG 

You can refer to the following example

Sample fact table

vxinruzhumsft_0-1681798393346.png

 

Sample lookup table

vxinruzhumsft_1-1681798412908.png

 

To find the min date of the ID, then add it to the fact table.

Create a new custom clumn in fact table in power query

 Table.AddColumn(#"Changed Type", "Custom", each  Table.Sort(Table.SelectRows(Table , (x)=> x[Column1]=[Column1] ),{"Column2"})[Column2]{0} )

  Output

vxinruzhumsft_2-1681798572909.png

 

Best Regards!

Yolo Zhu

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

 

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.