Forum Discussion

shbz1690's avatar
shbz1690
Frequent Visitor
5 years ago
Solved

How to add a column in your matrix

I have a table with 2 columns:  carCount , carDealer   carDealer  carCount type A 2 sedan B 3 coupe A 2 sport A 3 coupe B 2 sedan B 5 sport C 6 coupe C 4...
  • Jihwan_Kim's avatar
    Jihwan_Kim
    5 years ago

    Hi, shbz1690 

    Thank you for your feedback.

    I did this by using Tabular Editor in Power BI. 

    I was thinking about how to show it like what you described on the post, but I could only find this way to do it. I think there are many other ways to achieve this but in my case, I could do it in this way only.

    First, download the external tool (Tabular Editor) for Power BI, and install it.

    In Tabular Editor, 

    - create a calculation group

    - under the calculation group, create calculation items

         item1: Sedan

         item2: Coupe

         item3: Sport

         item4: OneMoreColumn

         item5: Total

     

    I wrote the DAX measure for each calculation item. Keep in mind that the Total also has to be created.

     

    I could not find a way to draw pictures for each step.

     

    If you are OK, I can show it to you via TEAMS meeting.

     

    Thank you very much.