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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Suming a measure

Hi everyone,

First two columns are not measures, other are all measures. I Want to create a measure to sum the last column. i tried this: 

 

Suma Elasticidades solo contacto filas considerar = SUMX(Combinar1,[Suma Elasticidades para sacar elasticidad material]) but the value is a litle bit incorrect.
 
I also tried this: 
SumarSi = SUMX(Filter( VALUES(Combinar1[NumSem]) , [Measure Filter] = 1 ), [Suma Elasticidades para sacar elasticidad material])
The result is incorrect too.

Gustavo98_0-1660936648055.png

I hope someone can help me 😄

 

1 ACCEPTED SOLUTION
PabloDeheza
Solution Sage
Solution Sage

Hi there!

It would look something like this

SUMX( ADDCOLUMNS( SUMMARIZE( Table, NumSem, AñoSemOrd), "@Measure", [Suma Elasticidades para sacar elasticidad material], [@Measure]

Let me know if that helps!

View solution in original post

4 REPLIES 4
PabloDeheza
Solution Sage
Solution Sage

Hi there!

It would look something like this

SUMX( ADDCOLUMNS( SUMMARIZE( Table, NumSem, AñoSemOrd), "@Measure", [Suma Elasticidades para sacar elasticidad material], [@Measure]

Let me know if that helps!

Anonymous
Not applicable

it worked perfectly.

 

Ty vry much.

Anonymous
Not applicable

Ty vry much for responding.

 

What do you refer with "@Measure". The name of my new measure?

 

 

the measure uses ADDCOLUMNS, so "@Measure" y the name of the new column you are adding on your calculation, its just a name. The thing is that its a good practice to use @ on new columns created when using  ADDCOLUMNS or any other function that lets you do that, it helps to identify them

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.