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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Felix_Schulte
New Member

Select latest rows

A background job pushes daily updates into Power BI (push dataset) via REST API.

 

This looks similar to this:

 

ProductVersionIssuesDate
ProdA1.3102022/07/21
ProdB1.252022/07/21
ProdA1.492022/07/22
ProdB1.362022/07/22

 

I'd like to show in a report the current issue status (aside from historical data as well).

 

Option 1)

I.e. id like to filter the table (into an intermediate virtual table) so that it only shows the latest values.

In other words: Find the latest_date; Then throw out any rows, where the Date column does not match the latest_date.

E.g.:

ProductVersionIssuesDate
ProdA1.492022/07/22
ProdB1.362022/07/22

 

Option 2) If easier, I could always override a "current status table" each day. (I also do not know, how to accomplish that. Maybe do a secuence of CleanTable(); PushDataToTable();?)

 

How would I do this?

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

You could create a table like

Latest Data =
var maxDate = MAX('Table'[Date])
return FILTER( 'Table', 'Table'[Date] = maxDate )

View solution in original post

1 REPLY 1
johnt75
Super User
Super User

You could create a table like

Latest Data =
var maxDate = MAX('Table'[Date])
return FILTER( 'Table', 'Table'[Date] = maxDate )

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.