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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
goyalsa
Helper III
Helper III

show blank value in matrix

Hi All,

I am not able to get the week that has a blank value. I already try to select "show items with no data" but still the same result.

goyalsa_0-1630306229906.png

Thanks in advance!!

 

1 ACCEPTED SOLUTION

Hi @goyalsa 

I tried to build measures to filter the visual or change the code, but due to relationship, it is not a good way to achieve your goal.

Here I suggest to use filter in Loadingweek in Filter Field manually. If you select 202130 in slicer, enter 202130 in filter as below. Result will start from 202130.

1.png

Best Regards,
Rico Zhou

 

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

20 REPLIES 20
APavlovs
Resolver II
Resolver II

@goyalsa Do you have a Date column in the original table? Might be the relatioship since its Many to Many right now.

In the original table, I have the loading week, week forecast filled in. 

mussaenda
Super User
Super User

Hi @goyalsa ,

 

You need a date table, create a relationship to your fact table

then use the data from the date table to the matrix.

 

Hope this helps.

APavlovs
Resolver II
Resolver II

Any chance you could add a sample.pbix that way it will be easier to debug the situation.

 

 

https://1drv.ms/u/s!ApGsTx0zWYrbiVCIq9AGfrSG9VcH?e=c5085a 

 

Hi @APavlovs,

 

Please find the link to access the file. I am not able to upload the file here, not sure.

 

Kind regards,

Sahil

Hi,

In another post, you mentioned that you have created a Date Table - i do not see that in your PBI file.  Please create that Table, ensure that you have a Date table in Table1 as well.  Also, in the Date Table, also create a Week number and Year column.  Share the download link of the revised PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi, @Ashish_Mathur,

 

In the sample file, I did not create it but create it in my original file. 

Anyway, I will create a data table in the sample file too.

https://1drv.ms/u/s!ApGsTx0zWYrbiVCIq9AGfrSG9VcH?e=Zdi3TE

 

Thanks in advance!!!!

Safe regards,

Sahil

As requested in my previous message, just as you have a Date column in the Calendar Table, there should be a Date column in Table1 as well.  Furthermore, the relationship should be Many to One and Single between the Date column of both tables.  Incroporate these changes and share the revised link. 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
APavlovs
Resolver II
Resolver II

Hi @goyalsa Have you created a Date table? If you have created just a new column from the original dataset then my guess is that it does not have any reference to weeks that don`t have any data.

 

If you create a Date Table you can use that as the date dimension and it will include all the weeks with BLANK values.

 

Basic sample here - https://files.fm/u/vcrmuytne

 

APavlovs_0-1630307577580.png

 

Did I answer your question? Mark my post as a solution 🙂

Hi @APavlovs,

 

I have created a Date table and made a relation with the other table (Loading week).

 

The column headers show the loading week from the Date table, and the rows show the status from another table.

Hi @goyalsa 

I agree with APavlovs 's reply. Add YearWeek from your Date table instead of YearWeek from your Fact table. Then use show items with no data.

First visual use YearWeek from Date table and second visual use YearWeek from Fact table.

1.png

Best Regards,
Rico Zhou

 

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

Hi @v-rzhou-msft,

 

Thanks for your inputs. I just added the date table and column Yearweek from the date table. But still getting the same result. I am not sure where I am lacking in it 😞

https://1drv.ms/u/s!ApGsTx0zWYrbiVCIq9AGfrSG9VcH?e=Zdi3TE

Link to review.

 

Thanks in advance!!

Hi @goyalsa 

I checked your sample file, and I think I find the reason that cause your lose in 202137,202138.

You filter 202130 in your "WeekForecast Field In" Slicer. In your Fact Table 202137 and 202138 are in 2021226 group in "WeekForecast Field In" . So you couldn't find it if you filter 202130 in your slicer.

1.png

Here I remove the filter in slicer, result is correct.

1.png

I suggest you to change the Loadingweek column type (in Date table)  to Whole number, to make it to be the same as the one in your Fact table.

Try this code.

Loadingweek = YEAR(Dates[Date])*100+WEEKNUM(Dates[Date])

Best Regards,
Rico Zhou

 

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

Hi @v-rzhou-msft,

 

The insights are helpful but once I filter Week Forecast Filled in 202130 then it shows me the same result as before.

goyalsa_0-1630481922329.png

Week 202137, 202138, and 202141, 202142 are missing.

 

 

 

Hi @goyalsa 

I think this should be caused by relationship. You can try to build a measure. Use this measure instead of column in value field in Matrix.

 

Measure = SUM(Table1[Forecasted Demand])+0

 

Result is as below.

1.png

Best Regards,
Rico Zhou

 

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

Hi @v-rzhou-msft,

 

This is looking fine to me but the slicer filter not working at my side.

goyalsa_0-1630491129566.png

Can you please share the file link so I can take a look.

Many thanks in advance!!

Hi @goyalsa 

I try this way in your sample file and it works well in it. Here is my sample file.

 

Best Regards,
Rico Zhou

 

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

Hi @v-rzhou-msft,

 

I saw the sample file you have shared, but here the slicer filter is not working because,

- In your previous reply, the week forecast is 202130 but still, the week starts before 202130.

- In the sample file you shared, I can see the same problem.

goyalsa_0-1630554291903.png

Still at the same point 😞

 

Hi @v-rzhou-msft,

 

If we can find out after the selected week forecasted fill in 202130, the matrix starts with 202130, Then we can reach the solution.

Hi @goyalsa 

I tried to build measures to filter the visual or change the code, but due to relationship, it is not a good way to achieve your goal.

Here I suggest to use filter in Loadingweek in Filter Field manually. If you select 202130 in slicer, enter 202130 in filter as below. Result will start from 202130.

1.png

Best Regards,
Rico Zhou

 

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

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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