Forum Discussion
Status Graph with Date Slicer
- 5 years ago
Anonymous I am thinking that you will need a disconnected table of your status codes (use an Enter Data query to enter or use:
New Table = DISTINCT('Table'[Status]). Make sure there are no relationships to this table. Use the column created in this table as your legend. Then do something like the following (below). I mocked up the solution in the attached PBIX below sig. You want Page 18.Measure 18 = VAR __Status = MAX('Table (18a)'[Status]) VAR __Table = ADDCOLUMNS( SUMMARIZE('Table (18)',[Project],"__MaxDate",MAX([Date of Status])), "__Status",MAXX(FILTER('Table (18)',[Date of Status]=[__MaxDate]),[Status]) ) RETURN COUNTROWS(FILTER(__Table,[__Status]=__Status))
Anonymous I am thinking that you will need a disconnected table of your status codes (use an Enter Data query to enter or use:
New Table = DISTINCT('Table'[Status]). Make sure there are no relationships to this table. Use the column created in this table as your legend. Then do something like the following (below). I mocked up the solution in the attached PBIX below sig. You want Page 18.
Measure 18 =
VAR __Status = MAX('Table (18a)'[Status])
VAR __Table =
ADDCOLUMNS(
SUMMARIZE('Table (18)',[Project],"__MaxDate",MAX([Date of Status])),
"__Status",MAXX(FILTER('Table (18)',[Date of Status]=[__MaxDate]),[Status])
)
RETURN
COUNTROWS(FILTER(__Table,[__Status]=__Status))
Hey thanks so much, this worked like a charm!