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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Power Query Min, Max and count of dates

Hello,

 

I have a table that has 85 date columns and many rows. What is the most efficient way of getting the minimum date, maximum date, and count of dates that fall between a certain window (3 months from a set date and 6 months from the set date)? I was thinking to make a loop through the table and setting min_date, max_date, and counts as loop variables. Is there a more efficient way in terms of memory and time complexity?

 

Thanks!

1 REPLY 1
v-yalanwu-msft
Community Support
Community Support

Hi, @Anonymous ;

I'm a little confused about your question, can you share a simple case and the results you hope to output to show?

 

please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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