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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Create a new table like a matrix

Hi.

I'm try to create a new calculated table like this
Capture.JPGAnd fill the blank spaces with "0" to represent in a line chart without blank spaces.

Capture2.JPG

 

The numbers in the matrix is a measure of COUNTROWS and the values of the first column are a column of the Excel with diferent categories.

 

Can you help me please, and sorry for the english errors i'm starting with this.



 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

I created a sample pbix file (see attachment), please check whether that is what you want.

1. Create a date dimension table

2. Create relationship between BD and date dimension table base on date field

3. Put Month field from date dimension table into matrix to replace month field of BD table

yingyinr_0-1616485766540.png

Best Regards

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @Anonymous ,

I created a sample pbix file (see attachment), please check whether that is what you want.

1. Create a date dimension table

2. Create relationship between BD and date dimension table base on date field

3. Put Month field from date dimension table into matrix to replace month field of BD table

yingyinr_0-1616485766540.png

Best Regards

DataZoe
Microsoft Employee
Microsoft Employee

@Anonymous In your measure add in a way to convert the blank() to 0 like this:

 

Measure = COALESCE(COUNTROWS(Table),0)

Respectfully,
Zoe Douglas (DataZoe)



Follow me on LinkedIn at https://www.linkedin.com/in/zoedouglas-data
See my reports and blog at https://www.datazoepowerbi.com/

Anonymous
Not applicable

Im try to use the solution, but the blank spaces don't fill with values
SOLUTION.JPG

 

@Anonymous Can you tell me what table the left column is getting it's data from? Is it the same table, 'BD'?

Respectfully,
Zoe Douglas (DataZoe)



Follow me on LinkedIn at https://www.linkedin.com/in/zoedouglas-data
See my reports and blog at https://www.datazoepowerbi.com/

@Anonymous 

Just add a 0 to your measure.. As in

no blanks = [your measure] + 0

or

no blanks = SUM(table[column]) + 0





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.