Forum Discussion
Anonymous
6 years agoNot applicable
How to Filter a Table To Show Only Most Recent Date For Each Project
I have a table to be loaded into Power BI. There are 3 columns I am concerned with: Project_Name, Document_Name, Modified. The data in the table is something like this: | Project_Name | Docume...
- 6 years ago
Hi Anonymous ,
Here we go:
Measure = VAR maxd = CALCULATE ( MAX ( 'Table'[Modified] ), ALLSELECTED ( 'Table' ), VALUES ( 'Table'[Project_Name] ) ) RETURN IF ( MAX ( 'Table'[Modified] ) = maxd, 1, BLANK () )Pbix as attached.
amitchandak
6 years agoSuper User
Anonymous ,
Try like adding this measure to the visual
Measure =
VAR __id = MAX ( 'Table'[project_name] )
VAR __date = CALCULATE ( MAX( 'Table'[Modified] ), ALLSELECTED ( 'Table' ), 'Table'[project_name] = __id )
RETURN CALCULATE ( count ( 'Table'[project_name] ), VALUES ( 'Table'[project_name ), 'Table'[project_name] = __id, 'Table'[Modified] = __date )