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
Anonymous
Not applicable

dax formula for the latest/recent data - who covid19 data

hi,

kindly ref sample data.

 

when i select a range of dates from the period selector, it displays the total/summation of those data. i'm only able to get data for a specific date (incl the latest date) when i select the specific date from the period selector.

 

i wish to have both the total figures + the latest data figures for the latest/most recent data on the matrix.  kindly guide me on how to get the dax for the latest data figures for the latest/most recent data (as i'm already able to get the total figures).

 

tks & krgds, -nik

1 ACCEPTED SOLUTION
Anonymous
Not applicable

many tks fr the offer to help. @Arul .

 

i have just found the solution to get the latest data for new cases + new deaths as follows:

CALCULATE( [NewCases], LASTDATE('cv19-data'[Date_reported] ) )

CALCULATE( [NewDeaths], LASTDATE('cv19-data'[Date_reported] ) )


with those measures i'm now able to show the figures for the latest new cases & new deaths based on a specified date(s).

 

many tks again & krgds, -nik

View solution in original post

2 REPLIES 2
Arul
Super User
Super User

@Anonymous ,

Could you explain your problem more?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


Anonymous
Not applicable

many tks fr the offer to help. @Arul .

 

i have just found the solution to get the latest data for new cases + new deaths as follows:

CALCULATE( [NewCases], LASTDATE('cv19-data'[Date_reported] ) )

CALCULATE( [NewDeaths], LASTDATE('cv19-data'[Date_reported] ) )


with those measures i'm now able to show the figures for the latest new cases & new deaths based on a specified date(s).

 

many tks again & krgds, -nik

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.