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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
kitala11
Helper III
Helper III

Matrices

X    Y

1     2

3     4

5     6

 

Does anyone know if there is a way to use the columns of the matrices. For example using Y to divide X, and get a third column?

1 ACCEPTED SOLUTION
v-cazheng-msft
Community Support
Community Support

Hi @kitala11 ,

You can use columns in Matrix visual to carry on division by creating three Measure.

 

In the sample, there are item, X, and Y columns in a table called matrix. They are used to build Matrix visual.

 

Three Measure:

MX = SUM(matrix[X])

MY = SUM(matrix[Y])

divide = matrix[MY]/matrix[MX]

 

The result looks like this:

v-cazheng-msft_1-1610008826346.jpeg

 

 

 

Best Regards,

Caiyun Zheng

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-cazheng-msft
Community Support
Community Support

Hi @kitala11 ,

You can use columns in Matrix visual to carry on division by creating three Measure.

 

In the sample, there are item, X, and Y columns in a table called matrix. They are used to build Matrix visual.

 

Three Measure:

MX = SUM(matrix[X])

MY = SUM(matrix[Y])

divide = matrix[MY]/matrix[MX]

 

The result looks like this:

v-cazheng-msft_1-1610008826346.jpeg

 

 

 

Best Regards,

Caiyun Zheng

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

mahoneypat
Microsoft Employee
Microsoft Employee

Are X and Y columns in your table?  If so, you can just add a custom column in the query editor with

 

= [X]/[Y]

 

Or you can do it with a DAX calculated column, or with a measure.  Please describe your situation further if the above isn't what you need.

 

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


No they arent. Those columns are produced with the matrice. So what I really what to know is as I mentioned. If it is possible to calculate Y/X for example. With the columns produced by the matrice directly or I'd have to go another sort of roundabout way

@kitala11 , New column

divide([Y],[X])

is that giving problem.

 

X and Y should be columns, If they are measures, new column is not possible

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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