Forum Discussion
Calculated item alternative
- 8 years ago
Hi,
Do not drag Sex to the column area section. Just drag years to the row area section and then write the 3 measures that i shared with you in my earlier post.
Hi,
If you want to get your desired result on an unpivoted dataset, try these measures:
Males = CALCULATE(SUM(Data[Aantal]),Data[Sex]="Male")
Females = CALCULATE(SUM(Data[Aantal]),Data[Sex]="Female")
Sex ratio (%) = [Males]/[Females]
Hope this helps.
HI Ashish_Mathur, thanks for your input. This certainly helps!.
Can I conclude that you cannot caculate the sex ratio on a pivotted list?
- Ashish_Mathur8 years ago
Super User
Hi,
v-piga-msft has already shared that solution with you.
- RonLieuw8 years ago
Helper I
Asish, v-piga-msft solution was for an unpivotted file with columns for male and female!
- Ashish_Mathur8 years ago
Super User
Hi,
In which case, i am not clear about the terminology you are using. Please show the dataset and the expected result.