Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

Calculate Column based on different Values

Hello Community,

 

I have a simple table showing the status of either "open" or "closed" in a column labled "status".  Is there a way to have a new column which calculates the % of open and/or closed statuses based on the total?  So for example, if I want to know what % of customer's have an "open" status the answer should be 62.5% (5 open status / 8 total status).  Thank you!

 

  • Anonymous

     

    Pls Try this

     

    =
    DIVIDE (
        CALCULATE ( COUNTROWS ( TableName ), TableName[Status] = "Open" ),
        COUNTROWS ( TableName )
    )

2 Replies

  • Zubair_Muhammad's avatar
    Zubair_Muhammad
    Community Champion

    Anonymous

     

    Pls Try this

     

    =
    DIVIDE (
        CALCULATE ( COUNTROWS ( TableName ), TableName[Status] = "Open" ),
        COUNTROWS ( TableName )
    )
    • Anonymous's avatar
      Anonymous
      Not applicable

      Thank you Zubair_Muhammad!