Forum Discussion

dd88's avatar
dd88
Post Patron
2 years ago
Solved

count rows with same value in the one column

I have a column Department, that contains all the organisation departments eg  Deparment Finance Adminstration Client Services HR Board HR HR Finance Finance Finance Technology how c...
  • Ashish_Mathur's avatar
    2 years ago

    Hi,

    In Power Query, create another tables with the unique departments.  Create a relationship (Many to One and Single) from your Fact tables to the new tables.  To a Table visual, drag Department from the new table.  Write this measure

    Count = countrows(Data)

    Hope this helps.

  • muhammad_786_1's avatar
    2 years ago

    Hy dd88 
    You can get your desired output by this simple measure.

     

     

    Best Regards,
    Muhammad Yousaf

     

    If this post helps, then please consider "Accept it as the solution" to help the other members find it more quickly.

     

    Follow on LinkedIn