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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
semidevil
Helper I
Helper I

how to create a dynamic date to indicate "data updated as through...[date]."

I'm trying to create some sort of text box to place in my powerBI cover slide.  I want it to be a date indicator to let my audience know that the data is "Updated through....[DATE]."

[DATE] would by dynamic and change.

 

I can't use a "Max" date formula because I already have all of 2018 dates in my table.  I also can't use a 'previous date' logic because the data doesn't get updated on the exact same day (i,e  Sometimes, the data will be updated on April 1st, but other times, it may be updated April 8th).

 

I'm thinking of having my formula or measure look at one of my data columns and grab the sum of the values of the max date, but condition where the value is populated (i,e: NOT 0).  i

 

So in words:

refresh date = sum(column[values], date = max(date), sum(columns[values] >0).

 

How would I go about doing this in powerbi syntax?  Is there an easier way?

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

 

Maybe something like this

 

=CALCULATE(MAX(Data[Date]),FILTER(Data,SUM(Data[Value])>0))

 

Format this measure as a Date.

 

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

 

Maybe something like this

 

=CALCULATE(MAX(Data[Date]),FILTER(Data,SUM(Data[Value])>0))

 

Format this measure as a Date.

 

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Phil_Seamark
Microsoft Employee
Microsoft Employee

HI @semidevil

 

What is your datasource?  If it's SQL and you are importing data, you could just import a table with a query like 'SELECT GETDATE() as LoadedDate)'  This would generate a 1 row, 1 column table with a date value you can use in a measure.  Other datasources would have a similar ability.


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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