Forum Discussion

PBI5851's avatar
PBI5851
Helper V
5 years ago

Adding count to a table

Hello, please could you advise if there is a way to display the count of records in a table. The data that is being displayed is just text with names and addresses. I can add another column as PersonID and mark it as a Count(distinct). But this displays 1 for every row . It gives me the answer but it will not be accepted by the client due to that column. 

 

Is there a way to hide that column or any other way to display a count. 

4 Replies

  • PBI5851 


    New Column  = COUNTROWS(TABLE)

    ________________________

    If my answer was helpful, please consider Accept it as the solution to help the other members find it

    Click on the Thumbs-Up icon if you like this reply 🙂

    YouTube  LinkedIn 

    • PBI5851's avatar
      PBI5851
      Helper V

      Fowmy . Thank you for the reply. But unfortunately, that is adding a column. I want to display the count without adding a new column. 

      • Fowmy's avatar
        Fowmy
        Super User

        PBI5851 

        Add this as a measure

        New Measure = 
        
        Calculate ( Countrows(Table), All(Table))

        ________________________

        If my answer was helpful, please consider Accept it as the solution to help the other members find it

        Click on the Thumbs-Up icon if you like this reply 🙂

        YouTube  LinkedIn