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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.