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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
Anonymous
Not applicable

Calcular la diferencia entre un mes y otro

Buenos dias

 

Quisera saber como calcular la diferencia entre los valores de cada mes, tengo el siguiente archivo, en donde quiero calcular la diferencia, cada mes corresponde a una tabla diferente, sin realizar la suma total solo realizar la diferencio por cada concepto por cada mes

DannaLA526_0-1678202384712.png

 

2 REPLIES 2
v-yangliu-msft
Community Support
Community Support

Hi  @Anonymous ,

I created some data:

1Month:

vyangliumsft_0-1678413497926.png

You can use the SELECTCOLUMNS() and Sumx() functions to load the data you want from each table into a table

 

Here are the steps you can follow:

1. Create calculated table.

Table =
 DISTINCT(
SELECTCOLUMNS(
    '1Month',
    "1Month",
    SUMX(FILTER(ALL('1Month'),'1Month'[Concepto]="Total"),[Amount]),
    "2Month",
    SUMX(FILTER(ALL('2Month'),'2Month'[Concepto]="Total"),[Amount]),
    "3Month",
    SUMX(FILTER(ALL('3Month'),'3Month'[Concepto]="Total"),[Amount])))

2. Result:

vyangliumsft_1-1678413497929.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Anonymous
Not applicable

Lo que entiendo es que debo crear una tabla o columna para cada concepto y columna?, ya que cuando lo hago no me tiene en cuenta las columnas, las tablas muestra los resultados por tempresa y concepto

DannaLA526_1-1678804157824.png

 

Helpful resources

Announcements
Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Kudoed Authors