Forum Discussion

larabraghetti's avatar
larabraghetti
Helper II
9 years ago
Solved

New Table for another one with Count

Hi all,   in PowerBI, I have a table like this one:   And I need to create a new table like this one:   I need this 2nd table in order to built a new cascade graph. Someone could h...
  • Anonymous's avatar
    Anonymous
    9 years ago

    larabraghetti

     

    Please try the following

     

    1. After the intial load of the table, right click on the table and select Edit Query

    2. This will take you to QueryEditor

    3. Go to the transform tab

    4. Select the three columns of the table Opened atStartDate,OpenedThisMonth, ClosedThisMonth

    5. Choose the icon a2 UnpivotColumn from the AnyColumn area

        

    6. The Output of your intial table will be like

    7. Click on File --> Close and Apply

    8. Now create the newTable as 

        NewTable = Summarize( OpenClosed,[Attribute],"Counts",Calculate( Countrows(OpenClosed),

                                           OpenClosed[Value] ="Yes" || OpenClosed[Value] ="Opened" )   )

    9. When you plot the columns from the NewTable in a Table Report Visual, the output will be as you desired.

     

      

     

    If this solves your issue please accept this as a solution and also give KUDOS.

     

    Cheers

     

    CheenuSing