Forum Discussion

RinJ17's avatar
RinJ17
Frequent Visitor
3 years ago
Solved

[Help] How to create zero count rows in matrix and chart?

Hello Power BI community,

 

I have Ticket table with 3 columns, "Component", "Status" and "Week Number".

 

And I created a matrix in Power BI to show number of tickets(count rows) based on Status and Week Number as a following picture.

 

 

But the problem is that I want to show all status (open, in progress, close) including zero like this.

 

Not only matrix, charts cannot show all status (including zero) too.

 

Does anyone have any suggestions on this?

Please help!

 

Thank you in advance.

  • Hi RinJ17,

     

    You can try this:

     

    1) Create 2 new tables and link them with your main one.

    Components = DISTINCT ( data[Component] )
    
    Weeks = DISTINCT ( data[Week Number] )

     

     

    2) Create a measure.

    Counter = COUNT ( data[Week Number] ) + 0

     

    3) Use the newly created tables and measure in the matrix visual:

     

    Best Regards,

    Alexander

    My YouTube vlog in English

    My YouTube vlog in Russian

2 Replies

  • Hi RinJ17,

     

    You can try this:

     

    1) Create 2 new tables and link them with your main one.

    Components = DISTINCT ( data[Component] )
    
    Weeks = DISTINCT ( data[Week Number] )

     

     

    2) Create a measure.

    Counter = COUNT ( data[Week Number] ) + 0

     

    3) Use the newly created tables and measure in the matrix visual:

     

    Best Regards,

    Alexander

    My YouTube vlog in English

    My YouTube vlog in Russian