Forum Discussion

beckyconning's avatar
beckyconning
Icon for Helper I rankHelper I
6 years ago
Solved

Incorrect counts in Power BI (They are correct in the Query editor but wrong elsewhere)

I've checked the count in Snowflake and Postgres and the count is correct in the Query Editor but wrong in the tables and charts.

It should be 61 but it says 63.


  • parry2k's avatar
    parry2k
    6 years ago

    beckyconning there must be,

     

    if you add following measure and then drop drug and reaction and this measure in a table, sort it by this measure you will see if there is count more than 1

     

    CountRows = COUNTROWS ( myTable )

     

10 Replies

  • beckyconning may be there are two rows for drugs and reaction which is making the sum of that count. if you drop down arrow next to count column in values section and choose don't aggregate, see what you get.

    • beckyconning's avatar
      beckyconning
      Icon for Helper I rankHelper I

      Thanks for your reply.

       

      I still get the same incorrect value.

       

      • parry2k's avatar
        parry2k
        Icon for Super User rankSuper User

        beckyconning as i can see in the screen shot, you count says, sum of count, you have click arrow next to it, and select Don' t Aggregate