Forum Discussion
mohuas
8 years agoNew Member
Ratio calculation from same column
The below screenshot is an example of sorted data where we have city, month, the numerator (Sales), the denominator (Opportunity) and values. Now, we want to calculate the Sales % i.e., Sales / Oppor...
- 8 years ago
Hi mohuas
Try this MEASURE
Sales% = DIVIDE ( CALCULATE ( SUM ( TableName[Value] ), TableName[Attribute] = "Sales" ), CALCULATE ( SUM ( TableName[Value] ), TableName[Attribute] = "Opportunity" ) )
Zubair_Muhammad
8 years agoCommunity Champion
Hi mohuas
Try this MEASURE
Sales% =
DIVIDE (
CALCULATE ( SUM ( TableName[Value] ), TableName[Attribute] = "Sales" ),
CALCULATE ( SUM ( TableName[Value] ), TableName[Attribute] = "Opportunity" )
)- mohuas8 years agoNew Member
Zubair_Muhammad Thank You so much for the help. The provided solution worked. :)