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

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

Reply
powerbiAG
Frequent Visitor

LTM calculation based on multiple master records

 

 

Hi All,

We have a scenario wherein a company has on-boarded other businesses and all the details (includng the acquired month) are available in Subsidiary master dimension table. Sample data below...

 

Subsidiary Id

Subsidiary Name

 Acquisition Month

1

Business 1

Feb-21

2

Business 2

Dec-19

3

Business 3

Oct-18

 

We have Sales transaction tables historic and current (with same structure)

 

Subsidiary Id

Sales Month

Sales (Historic)

1

Jan-20

100

1

Feb-20

200

1

Mar-20

120

2

Sep-19

100

2

Aug-19

300

2

Nov-19

120

3

Jul-18

100

3

Apr-18

100

3

Sep-18

120

 

Subsidiary Id

Sales Month

Sales (Current)

1

Jan-22

100

1

Feb-22

200

1

Mar-22

120

2

Jan-22

100

2

Feb-22

300

2

Mar-22

120

3

Jan-22

100

3

Feb-22

100

3

Mar-22

120

 

Requirement is to calculate the last 12 months Sales (Historic) data (for each subsidiary) based on the "acquisition month" in the subsidiary master.

 

expected sample output..

 

Subsidiary Id

Last 12 Months Sales Historic

1

420 (100 + 200 + 120)

2

520 (100 + 300 + 120)

3

320 (100 + 100 + 120)

 

the sample data has been provided only for 3 months for ease of understanding.

 

Any help would be highly appreciated.

 

Thanks.

 

 

 

0 REPLIES 0

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.