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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
davidgarza95
New Member

LASTNOBLANK() and a date filter

I have a table with dates on column A and then an ID on column B.

I want to get the date for the last non-blank ID. This is simple.

Then I want to show it on a table and filter for today's month.

How do I get the date to show up if it's earlier than today? How do I get around the date filter?

1 REPLY 1
kentyler
Solution Sage
Solution Sage

If you want to to a calculation but have an external filter context (like a date filter)

The standard approach is to use CALCULATE() to do the calculation, be it can modify the surrounding filter context. You can add an ALL(myTable) argument to the calculate, and it will remove the surrounding filters (for the duration of the calculation). 
Post some sample data and the measure or calculated column you're using if you need more help.

I learn something every time I answer a question

I'm a personal Power BI trainer 





Did this post answer your question? Mark it as a solution so others can find it!

Help when you know. Ask when you don't!




Join the conversation at We Talk BI find out more about me at Slow BI


Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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