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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
gerdtf84
Frequent Visitor

How to reference the earliest date from transaction table in my rolling calendar query in M?

Hello,

 

I have my rolling calendar table as a lookup, using a static start value.

 

Instead I rather use the earliest date from my transaction table, so when I build a date slice it fits perfectly.

 

How can I do that?

 

Thanks

1 ACCEPTED SOLUTION
Arul
Super User
Super User

Hi @gerdtf84 ,

I hope that you need minimum date from transaction table. If I understood your problem correctly, then you try this,

 

List.Min(Table.Column(#"Transaction Table", "Date column" ))

 

 

Thanks,

Arul





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


View solution in original post

2 REPLIES 2
gerdtf84
Frequent Visitor

Hello Arul,

 

thank you for your help. That was exactly what I was looking for.
I tried to integrate step by step and I can retrieve the correct date. But I do not manage to integrate it into my rolling calendar.

this is what I have so far:

 

startDate = List.Min(Table.Column(#"Sales", "Date" )),
#"Create List Of Dates" = List.Dates(Number.From(DateTime.LocalNow())-Number.From({{startDate}}),#duration(1,0,0,0)),
#"Converted to Table" = Table.FromList(#"Create List Of Dates", Splitter.SplitByNothing(), null, null, ExtraValues.Error),

 

But I am getting an error cause it seem I am getting a List instead of a Date value. Can you give me a hand here as well?

 

Thanks a lot for your help.

Arul
Super User
Super User

Hi @gerdtf84 ,

I hope that you need minimum date from transaction table. If I understood your problem correctly, then you try this,

 

List.Min(Table.Column(#"Transaction Table", "Date column" ))

 

 

Thanks,

Arul





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors
Users online (2,976)