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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
IlseV
Frequent Visitor

how to replace blank fields to zero in matrix visual

Hi I have a table

Itemnumber     Date                   Value       
A12/09/202220
A13/09/202250
A14/09/202260
B13/09/202240
B14/09/202210
C12/09/202270
C14/09/202240
D13/09/202250

 

and I want the blank fields to be filled up with zero, so I can perform calculations, but I only get blanks instead of zero

Itemnumber13/09/202214/09/2022
A5060
B4010
C040
D500
1 ACCEPTED SOLUTION

 

Hi,

thank you for sharing.

In my opinion, data model has to be created by using item dimension table and date dimension table.

Please check the attached pbix file and the below picture.

 

 

Jihwan_Kim_0-1663324616017.png

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

View solution in original post

9 REPLIES 9
tamerj1
Super User
Super User

Hi @IlseV 
You need to have independent dimention tables as follows. Please refr to atached sample file

 1.png2.png

Measure = SUM ( FactTable[Value] ) + 0
IlseV
Frequent Visitor

 

Hi,

thank you for sharing.

In my opinion, data model has to be created by using item dimension table and date dimension table.

Please check the attached pbix file and the below picture.

 

 

Jihwan_Kim_0-1663324616017.png

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

Wow, this works. Many thanks!

I now added a Difference - measure to get a view on the difference in numbers between 2 days.

 

I got the tip from another post:

Difference = Var vPreviousDay = CALCULATE(Sheet1[expected measure:], FILTER(Sheet1,Sheet1[Days since]=MIN(Sheet1[Days since])))
Var vPreviousDay1Back = CALCULATE(Sheet1[expected measure:], FILTER(Sheet1,Sheet1[Days since]=MIN(Sheet1[Days since])+1))
RETURN vPreviousDay-vPreviousDay1Back
 
But in the final matrix, I would in the lowest row expect -50 instead of +50, because I substract 0 minus 50.
Do you have any advice on this matter? I add again the link to the pbix.
Many thanks.
 
Jihwan_Kim
Super User
Super User

Hi,

One of ways to achieve this is to create a measure something like below, and put it into the matrix visualization.

 

New measure: = SUM(Table[Value]) + 0

 

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

Hi, I already tried this, but it doesn't work. The blank fields still remain blank.

Hi,

Thank you for your feedback, and please share your sample pbix file's link here, and then I can try to look into it to come up with a more accurate solution.

Thanks.

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

Hi, I can't add pbix files here

 

Hi,

please try to share Onedrive link, Googledrive link, Dropbox link, or any other link that allows to share the file, instead of attaching the file to here.

Thanks.

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.