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
rreck
Frequent Visitor

Show all rows in matrix visual - even when there are no values

Hi all,

 

I am working on a dashboard where it is necessary to display data in the matrix visual. The matrix is planned to look like this:

ProductsYear 2019Year 2020Year 2021Year 2022
A) Product 10000
B) Product 2efgh
C) Product 3ijkl
D) Product 4mnop
E) Product 50000
F) Totaluvwx

 

Now I have products 1 and 5 which were not part of my portfolio in those years, but are in year 2023 which results in the follwing matrix:

ProductsYear 2019Year 2020Year 2021Year 2022
B) Product 2efgh
C) Product 3ijkl
D) Product 4mnop
F) Totaluvwx

 

Is there a way to get my matrix to show all products (like shown in first matrix) even if all the values are "0"?

 

Thanks in advance 😁

1 ACCEPTED SOLUTION
v-yangliu-msft
Community Support
Community Support

Hi  @rreck ,

I created some data:

vyangliumsft_0-1677117616258.png

 

Here are the steps you can follow:

1. Create measure.

Measure =
IF(
    MAX('Table'[Value]) =BLANK(),"0",MAX('Table'[Value])
    )

2. Result:

vyangliumsft_1-1677117616261.png

Or if you click on the yellow label "Show items with no data", the values that are not displayed will be displayed as Blank()

vyangliumsft_2-1677117616262.png

 

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

2 REPLIES 2
v-yangliu-msft
Community Support
Community Support

Hi  @rreck ,

I created some data:

vyangliumsft_0-1677117616258.png

 

Here are the steps you can follow:

1. Create measure.

Measure =
IF(
    MAX('Table'[Value]) =BLANK(),"0",MAX('Table'[Value])
    )

2. Result:

vyangliumsft_1-1677117616261.png

Or if you click on the yellow label "Show items with no data", the values that are not displayed will be displayed as Blank()

vyangliumsft_2-1677117616262.png

 

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Hi, I have the same problem, but I have several columns with null values. How can I fix that?

 

Regards,

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.