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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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