Forum Discussion

Saxon10's avatar
Saxon10
Icon for Post Prodigy rankPost Prodigy
5 years ago
Solved

COUNT BY MULTIPLE COLUMNS

Hi,   I am trying to count by multiple columns status and type.   I have two tables are data and report. In data table contain three columns are Item, status and type and report table contain sta...
  • parry2k's avatar
    5 years ago

    Saxon10 add following measure:

     

    CALCULATE(COUNT(DATA[STATUS]),DATA[Type]= "NO" )

     

    in table visual, put status column and above measure and you will get the answer.

     

    Check my latest blog post Year-2020, Pandemic, Power BI and Beyond to get a summary of my favourite Power BI feature releases in 2020

    I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

    ⚡Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡