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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Pull latest date with data

Hi, I have data similar to below:

 

DateABC
10/25/2022   
10/19/2022   
10/5/20221054
10/3/2022   
10/2/2022   
9/28/202233787

 

How can I pull the latest date where data is present using a measure?  Which in this case is 10/5/2022

1 ACCEPTED SOLUTION
vojtechsima
Super User
Super User

Hello, @Anonymous 

LatestDateWithData = 
MAXX(
    FILTER('Table',  
        NOT(ISBLANK('Table'[A]) || 'Table'[A] = "") &&
        NOT(ISBLANK('Table'[B]) || 'Table'[B] = "") &&
        NOT(ISBLANK('Table'[C]) || 'Table'[C] = "")
    ),
    'Table'[Date]
)

If you want OR instead of AND, you can change && to ||

vojtechsima_1-1667039601844.png

 



 





Any kudos or recognition appreciated. To learn more on the topic, check out my blog and follow me on LinkedIn.

View solution in original post

1 REPLY 1
vojtechsima
Super User
Super User

Hello, @Anonymous 

LatestDateWithData = 
MAXX(
    FILTER('Table',  
        NOT(ISBLANK('Table'[A]) || 'Table'[A] = "") &&
        NOT(ISBLANK('Table'[B]) || 'Table'[B] = "") &&
        NOT(ISBLANK('Table'[C]) || 'Table'[C] = "")
    ),
    'Table'[Date]
)

If you want OR instead of AND, you can change && to ||

vojtechsima_1-1667039601844.png

 



 





Any kudos or recognition appreciated. To learn more on the topic, check out my blog and follow me on LinkedIn.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.