Forum Discussion
reast
Helper II
8 years agoCalculating from Columns in Different Tables
We have two screening tools and together, they are used to determine a client's level of care. Screening A is just one question with one score. Screening B has multiple questions and the sum, as well...
- 8 years ago
Hi reast
I think I see what you needed. I think this calculated table is close
New Calcuated Table = VAR Group1 = SUMMARIZECOLUMNS('Screening'[Client ID] , "Average Weight" , AVERAGE('Screening'[LOC])) VAR Group2 = SUMMARIZECOLUMNS('Screening'[Client ID],'Screening'[Clinician]) VAR Group3 = GROUPBY( NATURALINNERJOIN(Group1,Group2) , 'Screening'[Clinician],"Weighted Caseload", SUMX(CURRENTGROUP(), [Average Weight] ) ) RETURN Group3
Phil_Seamark
Microsoft Employee
8 years agoHi reast
I think I see what you needed. I think this calculated table is close
New Calcuated Table =
VAR Group1 = SUMMARIZECOLUMNS('Screening'[Client ID] , "Average Weight" , AVERAGE('Screening'[LOC]))
VAR Group2 = SUMMARIZECOLUMNS('Screening'[Client ID],'Screening'[Clinician])
VAR Group3 = GROUPBY(
NATURALINNERJOIN(Group1,Group2) ,
'Screening'[Clinician],"Weighted Caseload",
SUMX(CURRENTGROUP(),
[Average Weight]
)
)
RETURN Group3reast
Helper II
8 years agoThat's perfect!! Thank you so much! Happy Thanksgiving!!