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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
argnist
Frequent Visitor

Divide one summarized column by another

Hi all,

 

does anyone know the way to divide one summarized column over to another summarized column?

 

When I try something like SUM (Total Sales) / SUM (Items Sold) it calculates it for each item (for Laptop 1, Laptop 2, etc.) instead of the for the group of items (Laptop and Phones)

 

 

Here is a Matrix visual I have in Power BI (the 3rd column, which I need to calculate is simply Total Sales/Items Sold)

 

Item CategoryTotal SalesItems SoldAverage per item
Laptops         970,000              9701000
Phones         500,000              625800

 

 

This is how the original data set looks like:

 

ItemTotal SoldItems Sold
Laptop 170012
Laptop 280010
Laptop 3100014
Laptop 495010
Phone 170024
Phone 275065
Phone 380017

 

My question might be confusing - but please let me know if I can explain more.

1 ACCEPTED SOLUTION
argnist
Frequent Visitor

It is solved now.

 

But in case anyone is interested in solution: I've used New Measure VS New Column, and as it is well put here the New Measure evaluates it when used on the visual (VS New Column which evaluates on each row in the table) 

View solution in original post

1 REPLY 1
argnist
Frequent Visitor

It is solved now.

 

But in case anyone is interested in solution: I've used New Measure VS New Column, and as it is well put here the New Measure evaluates it when used on the visual (VS New Column which evaluates on each row in the table) 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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