Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Create a new table in dax

Hi,

From this existing table:
 
Can I create a new table who would look like this? If it's possible, I would like to filter the row of the original table when User 2 is blank.
Thanks!
  • Anonymous  I thought you will share a sample. Anyways. I created one and put down solution.

    File

5 Replies

  • Union and summarize table should help you. Later you can add the index column in this new table. Example

     

     

    Balance Sheet = union(SUMMARIZE(Sales,Sales[Brand],"Col1",sum(Sales[Sales]),"Col2",sum(Sales[COGS]),"sort",COUNTROWS(Sales)),SUMMARIZE(Sales,Sales[Brand],"Col1",sum(Sales[Sales1]),"Col2",sum(Sales[COGS1]),"sort",COUNTROWS(Sales)))

     

     

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi amitchandak ,

      do you have any sample data to share to show the original tables?

      Thanks

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

        Anonymous  I thought you will share a sample. Anyways. I created one and put down solution.

        File