Group by Percentage

Hi there!

I'm trying to figure out how to get the percentage of rejected x-ray images by reject reason. I built a simple ETL that gives me the count of rejected images by reason for each type of x-ray (body part) along with the total # of x-rays for that body part (Acquisition).

I'm stuck on how to get the % of rejects per body part and could use some help.

Many thanks! C


Best Answer

  • user17774
    user17774 ⚪️
    Answer ✓

    Works perfectly! Thanks so much for your help!

Answers

  • MarkSnodgrass
    MarkSnodgrass Portland, Oregon 🥷

    I would suggest adding another group by that aggregates by body part and then join it back to your initial group by. You can then use the formula tile to calculate the percentage. If you are unaware, you can have multiple lines go out from any tile so that you can perform different operations such as this and then join them back together.


    **Make sure to <3 any users posts that helped you.
    **Please mark as accepted the ones who solved your issue.
  • MarkSnodgrass
    MarkSnodgrass Portland, Oregon 🥷

    @user17774 Glad that worked for you. If you can accept any answers that helped you, that will help others in the community.

    **Make sure to <3 any users posts that helped you.
    **Please mark as accepted the ones who solved your issue.