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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
ZunzunUOC
Resolver III
Resolver III

Add column to new table

Hi again, I have a table (Report Diario) with the next columns:

 

AGREEMENT DATEEND DATEAMOUNTREGION

 

In a new table (CalendarioAdelantado) I have the next columns:

DATEAMOUNT

 

On the last table, column amount is a calculated column with the next code:

 

Amount = CALCULATE(SUM('Report Diario'[Signed Monthly Billing In Local Currency]);FILTER('Report Diario';AND(CalendarioAdelantado[Date]<'Report Diario'[Agreement Date];AND(CalendarioAdelantado[Date]>'Report Diario'[End Date];NOT(ISBLANK('Report Diario'[End Date]))))))

 

That said, I need to add a new column on the CalendarioAdelantado table with the column "Region". Thus, If I have

AGREEMENT DATEEND DATEAMOUNTREGION
01/07/201915/06/2019100SOUTH
01/07/201915/06/2019100NORTH
01/07/201915/06/2019100EAST
01/07/201915/06/2019100SOUTH

 

I need the next result:

 

DATEAMOUNTREGION
15/06/2019200SOUTH
15/06/2019100EAST
15/06/2019100NORTH

 

Any idea? Thanks.

 

 

 

1 ACCEPTED SOLUTION

Finally, here the solution:

 

Table = SELECTCOLUMNS(FILTER(CROSSJOIN(CALENDAR("01/01/2018";"01/01/2020");'Report Diario');[Date]>='Report Diario'[Fecha de Cierre]&&[Date]<='Report Diario'[Fecha Comprometida] && NOT(ISBLANK('Report Diario'[Fecha de Cierre])));"FECHA";[Date];"REGION";'Report Diario'[Sales Region];"ADELANTADO";'Report Diario'[Signed Monthly Billing In Local Currency])

I found it in another forum. Thanks.

View solution in original post

3 REPLIES 3
v-frfei-msft
Community Support
Community Support

Hi  @ZunzunUOC ,

 

Please refer to the below expression to generate the calculate table:

 

Table = SUMMARIZE('Report Diario',[AGREEMENT DATE],'Report Diario'[END DATE],[REGION],"Amount",SUM('Report Diario'[AMOUNT]))

summ.png

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Hi @v-frfei-msft , thanks for your effort.

 

I going to try to explaing better:

 

I have the next table:

 

reply002.png

 

And I need to show the next:

 

reply003.png

 

In every day I have between, agreement and end-Date, I need to show a data per region.

 

Finally, here the solution:

 

Table = SELECTCOLUMNS(FILTER(CROSSJOIN(CALENDAR("01/01/2018";"01/01/2020");'Report Diario');[Date]>='Report Diario'[Fecha de Cierre]&&[Date]<='Report Diario'[Fecha Comprometida] && NOT(ISBLANK('Report Diario'[Fecha de Cierre])));"FECHA";[Date];"REGION";'Report Diario'[Sales Region];"ADELANTADO";'Report Diario'[Signed Monthly Billing In Local Currency])

I found it in another forum. Thanks.

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.