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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Nnamarie_1997
Frequent Visitor

Measure that Adds a Measure's Result

Hi, good day!

I am currently working on obtaining the total sales for our company. For me, the easiest way to calculate the total sales is by adding a new column [New Column = SP * QTY]. However, I don't want to use a new column because I need to apply this calculation to each partition of the Fact Table in SSAS, and we already have a lot of partitions.

That's why I need your help. Is there any way to use a measure for this?

Here's the sample:

Nnamarie_1997_1-1705031326570.png 

 

Measure to get the Sales >> Sales = SUM(Sheet1[QTY]) * SUM(Sheet1[SP])

 


And now I want to add the Sales by Group,
but I don't know how to create a measure to get 2850 & 3650.  

Nnamarie_1997_2-1705031610478.png(In this pic, I used a calculated column not measure)

Can somebody help me?

Thanks in Advance 🙂

 




1 ACCEPTED SOLUTION
saurabhtd
Resolver II
Resolver II

@Nnamarie_1997 You can use below measure. This measure will give the result what you are looking. Since SUMX does row wise calculation. 

sales = SUMX(sheet1, Sheet1[QTY] * Sheet1[SP] ) 

View solution in original post

2 REPLIES 2
saurabhtd
Resolver II
Resolver II

@Nnamarie_1997 You can use below measure. This measure will give the result what you are looking. Since SUMX does row wise calculation. 

sales = SUMX(sheet1, Sheet1[QTY] * Sheet1[SP] ) 

Thanks a lot, @saurabhtd 🙂

Helpful resources

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

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors