Forum Discussion

Sparsh98's avatar
Sparsh98
Regular Visitor
2 years ago
Solved

Automatic GroupBy while summation

Hi PowerBI Community, 
I am facing an issue where while doing summation of a column it is automatically summing after grouping the data 
For example if input data is 

On doing Sum , output I am getting

Even though the final Sum is correct, but it is summarizing the data for field Name a as 4 and not keeping the values of a separate as 2 and 2. Is there any way to make this happen. Thanks in advance

 

5 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Sparsh98 ,

    The fields in the form/matrix will auto-groupby. it's by design.
    The workaround is to add an index column (in powerquery) and disguise it as a row number.

    Best Regards,
    Gao

    Community Support Team

     

    If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
    If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

    How to get your questions answered quickly --  How to provide sample data in the Power BI Forum -- China Power BI User Group

    • Sparsh98's avatar
      Sparsh98
      Regular Visitor

      No , I want to do sum on column Value . Post doing sum , it is combining rows 1 and 2 , and I am getting combined sum as 4 for Name 'a' . Thats is what I want to prevent as it is impacting the number of rows in my case . 
      I want to do sum on column Values , but the number of rows should not get altered

       

      • _AAndrade's avatar
        _AAndrade
        Resident Rockstar

        So the first table image is your data table. Am I right?
        You want to see on the matrix visual the same as you see on the first table?