The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi
I have a table as follows
Ident Review Status Date
123 Complete 01/12/2019
123 Complete 28/02/2020
123 Scheduled 08/02/2020
111 Complete 15/04/2020
134 Scheduled 30/04/2020
I'd like to create a new table with only the latest complete reviews per Ident im assuming i need a combination of summarize, Group and filter but cant get it right. Can anyone help?
Hi
just to advise none of these solutions worked
my resolution was to bring in the same table again with some filters on the query to give me a redacted data set, I then created a helper column and could create the new table I needed with this.
Not particularly elegant but got the job done for now.
Use the LASTDATE() function in a CALCULATE measure.
Ex.
CALCULATE(
SUM( 'Table'[Values] ),
LASTDATE( 'Table'[Date] )
)
This should only return the only latest value for each row in your matrix or table visual.
Hi @Matt_HD ,
Try this code for a new table:
Try this:
SUMMARIZE(
'Table',
[Ident],
"Date", IF(
'Table'[ReviewStatus] = "Completed",
MAX( 'Table'[Date] )
)
)