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
Community Champion
8 years agoHi mohuas
Try this MEASURE
Sales% =
DIVIDE (
CALCULATE ( SUM ( TableName[Value] ), TableName[Attribute] = "Sales" ),
CALCULATE ( SUM ( TableName[Value] ), TableName[Attribute] = "Opportunity" )
)mohuas
8 years agoNew Member
Zubair_Muhammad Thank You so much for the help. The provided solution worked. :)