I have data and I want to calculate the average training hrs per employee and wanted to show it in card visualisation. But the problem is when I click on any graph suppose a donut chart showing male and female, when u click on male then all the graphs will change instantly and show data according to male. But that card where I have taken training hrs/empl in values which shows 19.2 (for eg) that card doesn't change accordingly which is supposed to change.
What I have tried -
Created a new column
TR_HRS_PR_EMP =
CALCULATE (
DIVIDE (
SUM ( 'TRAINING_DATA'[Training Hours] ),
DISTINCTCOUNT ( 'TRAINING_DATA'[Employee Code] )
),
FILTER (
'TRAINING_DATA',
'TRAINING_DATA'[Source] = "2020-21"
|| 'TRAINING_DATA'[Source] = "2019-20"
|| 'TRAINING_DATA'[Source] = "2018-19"
)
)
My data-
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…