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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Crawfom
Regular Visitor

Creating a calculated column in Matrix

I am a newbie to PowerBi and am getting stuck.

I have a Matrix built from source data and want to add a 3rd column which is <<Current period>> divided by <<Last Year>>.

When I build a column in the data table to do this at an individual row level I get 'infinity' and this feeds through to the Matrix table. This is because I do have some zero and blank cells

What I want is (for example) on the mixed row .... sum(33,880,066.38/34715472)

Crawfom_0-1721482606658.png

The eroneous output looks like this

Crawfom_1-1721482788234.png

 

Thanks for your help (I suspect it is REALLY easy)

 

1 ACCEPTED SOLUTION
mickey64
Super User
Super User

For your reference.

How about a measure below?

 

Measure = DIVIDE(SUM([Current Period]),SUM([Last Year]))

 

View solution in original post

2 REPLIES 2
mickey64
Super User
Super User

For your reference.

How about a measure below?

 

Measure = DIVIDE(SUM([Current Period]),SUM([Last Year]))

 

mickey64 - thank you.

I added a new "measure" into the data table using your formula then a new column into the Matrix - which gave me the right answer!  

Everyday is a learning day and you have helped me on this one - thank you!

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.