Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
RinJ17
Frequent Visitor

[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".

RinJ17_0-1683879658425.png

 

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.

RinJ17_0-1683885569099.png

 

 

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

RinJ17_3-1683880754117.png

 

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

RinJ17_8-1683881215384.png

RinJ17_9-1683881238151.png

 

Does anyone have any suggestions on this?

Please help!

 

Thank you in advance.

1 ACCEPTED SOLUTION
barritown
Super User
Super User

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] )

 

barritown_0-1683896476116.png

 

2) Create a measure.

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

 

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

barritown_1-1683896616051.png

 

Best Regards,

Alexander

My YouTube vlog in English

My YouTube vlog in Russian

View solution in original post

2 REPLIES 2
barritown
Super User
Super User

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] )

 

barritown_0-1683896476116.png

 

2) Create a measure.

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

 

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

barritown_1-1683896616051.png

 

Best Regards,

Alexander

My YouTube vlog in English

My YouTube vlog in Russian

Yes, it works!

 

Thank you so much @barritown 🤗

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.