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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
comish4lif2
Advocate II
Advocate II

Show all Buckets in a Matrix

I have a Matrix visual, and along 1 axis, I have a count of HCCs, But not every count has a value, so, Power BI skips the row. For example below, 11 and 14 are skipped. Is there a way to force the matrix to show a row even when there is no data to display?

comish4lif2_0-1670627232755.png

In the dataset, in that column, all values from 1-15 do occur. As I filter the data, there are buckets/values that have no IDs and the count is 0. The Matrix then skips that row value. I want to show a blank row even when the value (count) is zero; showing the row  for all rows. Is this possible.

 

Right clicking and selecting "Show Items with No Values" has no affect on my visual.

 

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

Hi @comish4lif2 ,

There is no setting like continuous axis in the matrix. You may consider creating two new tables to fill in the missing values of the axes and pass these values into the formula via variables.

Suppose we have a table like this.

vcgaomsft_0-1670814419355.png

We can create two tables that are not connected:

 

Table 2 = GENERATESERIES(1,5,1)
Table 3 = GENERATESERIES(1,5,1)

 

vcgaomsft_1-1670814526454.png

Then drag them into the matrix, at this point the matrix will report an error and we will ignore it for now.

vcgaomsft_2-1670814565277.png

Then please new a measure and use it as matrix's value. like

 

Measure = 
VAR _x = MAX('Table 2'[Value])
VAR _y = MAX('Table 3'[Value])
VAR _value = CALCULATE(SUM('Table'[Value]),'Table'[X]=_x&&'Table'[Y]=_y)
RETURN
_value

 

And check the show items with no data, result:

vcgaomsft_3-1670814736278.png

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

View solution in original post

3 REPLIES 3
v-cgao-msft
Community Support
Community Support

Hi @comish4lif2 ,

There is no setting like continuous axis in the matrix. You may consider creating two new tables to fill in the missing values of the axes and pass these values into the formula via variables.

Suppose we have a table like this.

vcgaomsft_0-1670814419355.png

We can create two tables that are not connected:

 

Table 2 = GENERATESERIES(1,5,1)
Table 3 = GENERATESERIES(1,5,1)

 

vcgaomsft_1-1670814526454.png

Then drag them into the matrix, at this point the matrix will report an error and we will ignore it for now.

vcgaomsft_2-1670814565277.png

Then please new a measure and use it as matrix's value. like

 

Measure = 
VAR _x = MAX('Table 2'[Value])
VAR _y = MAX('Table 3'[Value])
VAR _value = CALCULATE(SUM('Table'[Value]),'Table'[X]=_x&&'Table'[Y]=_y)
RETURN
_value

 

And check the show items with no data, result:

vcgaomsft_3-1670814736278.png

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Mahesh0016
Super User
Super User

plz provide demo data .

 

No. My work data is sensitive.
Is the concept that hard to understand?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.