Forum Discussion

EbyEaso's avatar
EbyEaso
Helper III
2 years ago
Solved

Ratio Calculation

Hello, I need some assistance here. I have below sample data. I need to find out the ratio between two status of the issue.   Needed output is ration between the types of issue (but only between Pa...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi EbyEaso ,

    Based on your problems, here are my answers.

    First I created a table based on your description.

    Then created four Measure.

    Total Hardware Issues = SUMX(FILTER('Table', 'Table'[Type Of Issue] = "Hardware"), 1)
    Total Parts Issues = SUMX(FILTER('Table', 'Table'[Type Of Issue] = "Parts"), 1)
    Issue Ratio = DIVIDE([Total Hardware Issues], [Total Parts Issues])
    Ratio Display = (CONCATENATE("1:", [Issue Ratio]))

    Finally you will see the result you want.

     

     

    Best Regards

    Yilong Zhou

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.