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
nhol
Advocate II
Advocate II

Indication of the latest DATE that has value (Data is as of: ______)

Hi,

 

I guess this was asked several times but I still wasn't able to find a solution to my query.

I have a set of data that is being updated randomly and not on a daily basis (otherwise it was easy).

I need to let my users know what is the latest DATE that dataset is referring to.

For example if they are pulling the data on January 5, 2018 they should be able to know that the data is up-to-date as of 04/01/2018, or if they pull the data a couple of days later on January 10, 2018, it should be noted that the data is as of 07/01/2018.

I tried to build a function using MAX but was not able to nail this.

 

Any help would be highly appreciated.

 

Thanks,

NHCapture.PNG

 

 

2 ACCEPTED SOLUTIONS
v-jiascu-msft
Employee
Employee

Hi @nhol,

 

I have two approaches that are all measures. Please try them out.

Measure 1 =
CALCULATE (
    LASTDATE ( 'Table1'[Date] ),
    ISBLANK ( 'Table1'[Sales] ) = FALSE ()
)
Measure 2 =
LASTNONBLANK ( 'Table1'[Date], CALCULATE ( SUM ( 'Table1'[Sales] ) ) )

Indication_of_the_latest_DATE_that_has_value

 

Best Regards,

Dale

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

View solution in original post

Hi NH,

 

Try this formula as a calculated column please.

Column =
CALCULATE (
    LASTDATE ( 'Table1'[Date] ),
    FILTER ( 'Table1', ISBLANK ( 'Table1'[Sales] ) = FALSE () )
)

Best Regards,

Dale

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

View solution in original post

4 REPLIES 4
v-jiascu-msft
Employee
Employee

Hi @nhol,

 

I have two approaches that are all measures. Please try them out.

Measure 1 =
CALCULATE (
    LASTDATE ( 'Table1'[Date] ),
    ISBLANK ( 'Table1'[Sales] ) = FALSE ()
)
Measure 2 =
LASTNONBLANK ( 'Table1'[Date], CALCULATE ( SUM ( 'Table1'[Sales] ) ) )

Indication_of_the_latest_DATE_that_has_value

 

Best Regards,

Dale

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

Thanks! Both of them work. 

What would it be if I want to use a column and not a measure?

 

 

NH

Hi NH,

 

Try this formula as a calculated column please.

Column =
CALCULATE (
    LASTDATE ( 'Table1'[Date] ),
    FILTER ( 'Table1', ISBLANK ( 'Table1'[Sales] ) = FALSE () )
)

Best Regards,

Dale

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

Thank you Dale!

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.