Forum Discussion
merging two calculated tables
- 10 years ago
hi Anonymous
Try with this:
UnionTables = Union(SUMMARIZE('ProjectAuditsDB_LAST AUDITS SCORE';'ProjectAuditsDB_LAST AUDITS SCORE'[ProjectID];
'ProjectAuditsDB_LAST AUDITS SCORE'[Project Status];"Status";"Audited");SUMMARIZE('ProjectAuditsDB_NOTAUDITED';'ProjectAuditsDB_NOT AUDITED'[ProjectID];'ProjectAuditsDB_NOT AUDITED'[ProjectStatus];"Status";"Not Audited")
- 10 years ago
Anonymous
To obtain these results, use this:
ProjectAuditsDB_1ROW_BEFORE LAST AUDITS SCORE =
SUMMARIZE (
ProjectAuditsDB;
ProjectAuditsDB[ProjectID];
"AVG-LAST AUDIT"; CALCULATE (
AVERAGE ( ProjectAuditsDB[BIM Quality Score] );
FILTER (
ProjectAuditsDB;
ProjectAuditsDB[AuditDate]
= MINX (
TOPN ( 2; ProjectAuditsDB; ProjectAuditsDB[AuditDate] );
ProjectAuditsDB[AuditDate]
)
)
)
)
Hi Vvelarde
One row per project yes.
Please see image below. Highlighted yellow are most recent audits, produced by the LAST AUDITS summarized table.
Red box would be my desired table, where you would only select one audit per project whose date is the most recent date before last.
I have just selected 3 of the projects to convey the idea. Both summarized tables should list all projects where the filter applies.
Does this make sense?
Anonymous
To obtain these results, use this:
ProjectAuditsDB_1ROW_BEFORE LAST AUDITS SCORE =
SUMMARIZE (
ProjectAuditsDB;
ProjectAuditsDB[ProjectID];
"AVG-LAST AUDIT"; CALCULATE (
AVERAGE ( ProjectAuditsDB[BIM Quality Score] );
FILTER (
ProjectAuditsDB;
ProjectAuditsDB[AuditDate]
= MINX (
TOPN ( 2; ProjectAuditsDB; ProjectAuditsDB[AuditDate] );
ProjectAuditsDB[AuditDate]
)
)
)
)
- Anonymous10 years agoNot applicable
Many thanks Vvelarde, once again.