Forum Discussion
Ratio between two tables
- 9 years ago
Anonymous
You can create a Measure:
Attrition = Sum(Separations[Separations])/SUM(HeadCount[HeadCount])
And use it in a table visual
Hi Anonymous,
In case you had 2 tables (Headcount(Month,Headcount) & Separation(Month,Separation)):
- In Modeling, choose new table by expression:
Data = SUMMARIZE( NATURALINNERJOIN(Headcount,Separations),Headcount[Month],Headcount[Headcount],Separations[Separations])
- Create calculated column for attrition ( this could be achieved by calculated measure as well )
Attrition (%) = DIVIDE(Data[Separations],Data[Headcount])
If this works for you please accept it as solution and also like to give KUDOS.
Best regards
Tri Nguyen
- Vvelarde9 years agoCommunity Champion
Anonymous
You can create a Measure:
Attrition = Sum(Separations[Separations])/SUM(HeadCount[HeadCount])
And use it in a table visual
- parry2k9 years agoSuper User
Also I would like to add on top of what Vvelarde mentioned that there is relationship between botht those tables on a common field.
- Anonymous9 years agoNot applicable
There is only "month" is common in both tables. can i make a relationship with the help of months?
- Anonymous9 years agoNot applicable
i am unable to sum because i am counting a areas, so can i use divide measue with count/CountA?
- Anonymous9 years agoNot applicable
This is the simple example what i want to do... first i want to calculate the table 1(Separations) Names, then table2(headcount) Names. once i get the result like 5 separations and 5 headcounts. then i would like to make a ratio of 5 / 5 = 1.