Forum Discussion

angelikakolacz's avatar
3 years ago
Solved

COUNT with filter

Hello,

 

I need your help. 

How can i create a measure that gives me the count of customer number if the count of invoice is 1? 

 

 

 

  • angelikakolacz you need to add parenthesis after COUNT(YourTable[Column]) ),

     

    Follow us on LinkedIn and  to our YouTube channel

    I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make effort 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.

     

3 Replies

  • angelikakolacz try this measure

     

    Count = 
    SUMX ( SUMMARIZE ( Table, Table[Customer], "@Count", [Measure of count of invoice] ), 
        IF ( [@Count] = 1, 1 )
    )

     

    Follow us on LinkedIn and  to our YouTube channel

    I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make effort 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.

     

  • angelikakolacz you need to add parenthesis after COUNT(YourTable[Column]) ),

     

    Follow us on LinkedIn and  to our YouTube channel

    I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make effort 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.