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
DannaLA526
Frequent Visitor

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  @DannaLA526 ,

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

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

Top Solution Authors