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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors