Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Group by issue

Hi, I have been working on this forever and I cannot seem to get it to work.  For my project I need both current year and prior year values in the same row.  They come from 2 documents so I have them as two queries.  I combined them by I appending the prior year's values to the current year's.  However, for the if there is a balance for an account for both years, it gives me two rows rather than one which causes problems later in my analysis.  I cannot figure out how to do this, I had assumed it was as easy as a group by like this:

 

However that did not work.

 

Here is my output:

I would like there to be one 1000-1010 row, with values for both the current year and past year balances.  Any help or tips would be much appreciated!

  • Anonymous's avatar
    Anonymous
    5 years ago

    Never mind!  There was an extra space at the end of the 2020 values, cleaning the text resolved the problem.  Thank you all for your suggestions and time, it is much appreciated!!!!

7 Replies

  • aj1973's avatar
    aj1973
    Community Champion

    Hi Anonymous 

    Replace Null values by 0

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      I should have mentioned I already tried that, along with replace null values with blank.  Replacing with blank resulted in an error, and replacing with 0 did not change the output.

       

      Here is the output from replacing null with 0:

       

      • amitchandak's avatar
        amitchandak
        Super User

        Anonymous , I have couple of question3 here.

        1. Even if they are two rows in table. They will shown as one row; if rows values matches in visual when you take sum of balance. So no need group unless you want have grouped table only

        2. What is the error you are getting