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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Latest date Power Query

am looking to see what i am doing wrong in the below query, i am trying to just pull values associated with the latest date that isnt blank;;

 

EVALUATE SUMMARIZECOLUMNS('Date'[Date], FILTER(VALUES('Date'[Date]), LASTNONBLANKVALUE('Date'[Date], "QTC Sales", [QTC Sales])

 

The error i am getting is saying Too few arguments were passed. 

 

Additional if i was going to try filter this to look at latest date per category would that be simple to add into the query

3 REPLIES 3
Anonymous
Not applicable

@amitchandak  thank you for the response, this is how it came out of SQL server manager in design mode. I am trying to just query the latest date rather than query all dates to limit the size of my dataset

@Anonymous , that you need to control using connection parameter 

https://community.powerbi.com/t5/Desktop/parameterize-connection/m-p/205900#M90712

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
amitchandak
Super User
Super User

@Anonymous , there many issues. The max I can get out of this is

EVALUATE SUMMARIZECOLUMNS('Date'[Date], "QTC Sales", LASTNONBLANKVALUE('Date'[Date],[QTC Sales]))

 

The information you have provided is not making the problem clear to me. Can you please explain with an example.

Appreciate your Kudos.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.