Forum Discussion

swatts5883's avatar
swatts5883
New Member
10 years ago
Solved

summarize row counts in a new column

I am new to Power BI and I'm having trouble. I want to add a column to a table that totals the number of rows for each distinct value in another column. Thus, this input data in my table:   CityNam...
  • Greg_Deckler's avatar
    10 years ago

    Create a new column called "Count" and set it equal to 1:

     

    Count = 1

     

    Create a new MEASURE called "Total" and set it equal to:

     

    Total = COUNT([Count])

     

    On report canvas, create a table visualization and add CityName and Total to it.