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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
learner03
Post Partisan
Post Partisan

Selecting data in Last 2 months and current day

I have a huge data but in the trasform, I want to filter data based on Job Close date. I want to have data of last 2 months including the current date. How can I do that?

This is because my Visualisation has cars that would show current day's data and the table beneath it will show last two months data.

3 REPLIES 3
Anonymous
Not applicable

Hi @learner03 ,


Sorry to disturb you...


But did I answer your question ? Please mark my reply as solution. Thank you very much.

 

Best Regards,
Stephen Tao

Anonymous
Not applicable

Hi @learner03 ,

 

You can filter data from the following

Screenshot 2021-06-15 163831.png

 

 

Best Regards,

Stephen Tao

 

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

Anonymous
Not applicable

Table.SelectRows(PriorStepName, each [DateColumnName] >= Date.StartOfMonth(Date.AddMonths(Date.From(DateTime.LocalNow()), -2)) and DateColumnName <= Date.From(DateTime.LocalNow()))

 

--Nate

Helpful resources

Announcements
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!

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.