Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago

calculate client count

Hi Community..!!

I wanted to calculate count of clients that ordered more than 25000 products.
Could anyone help me to solve this.?

We have a client_id and quantity of products.

5 Replies

  • Anonymous , create a measure like

     

    countx(filter(sumamrize(Table, Table[Client], "_1", sum(Table[Amount])), [_1] >25000), [Client])

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi amitchandak 

      Client_id is in Client table and Quantity in Order table
      what should be the relationship between these two tables?

      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi Anonymous,

        Can you please share a pbix or some dummy data that keep raw data structure with expected results? It should help us clarify your scenario and test to coding formula.

        How to Get Your Question Answered Quickly  

        Regards,

        Xiaoxin Sheng