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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Top Kudoed Authors