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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.