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

How to connect changing monthly targets with production data?

Hi everyone, 

 

I have 3 programs, with 4 different regions. The target changes every month for each program & region. For example, as below: 

 

ProgramRegionTarget MonthTarget
ANorth1/1/20241000
ASouth1/1/20241000
AEast1/1/20241000
AWest1/1/2024900
BNorth1/1/2024500
BSouth1/1/2024500
BEast1/1/2024500
BWest1/1/2024200
CNorth1/1/2024500
CSouth1/1/2024500
CEast1/1/2024500
CWest1/1/2024200
ANorth2/1/20241500
ASouth2/1/20241500
AEast2/1/20241500
AWest2/1/20241250
BNorth2/1/20241000
BSouth2/1/20241000
BEast2/1/2024500
BWest2/1/2024500
CNorth2/1/2024800
CSouth2/1/2024800
CEast2/1/2024500
CWest2/1/2024350

 

How do I link this target table to my production data, and link to the correct program and region? If I make a unique code for each program & region to link between the two tables (for example, A-North, C-West, etc.), how can I have it take into account the month of the target & month of production to show whether we are meeting our monthly targets for each program and region? Thanks!

1 ACCEPTED SOLUTION
gmsamborn
Super User
Super User

Hi @AJTK 

 

Don't try to link two fact tables (Target, Production).

 

Instead, I would create dimension tables for Program and Region either by using "Enter Data" or Power Query.  (Usually that data is already available to you.)

 

I would also create a Date dimension table.

 

The dimension tables should be related to the fact tables using 1-to-many (1:*) relationships with the dimension table being on the "one side".

 

After that and a couple of simple measures, you should be able to slice/filter based on any or all of the 3 dimension tables.

 

Simple Star Schema.pbix

 

I hope this helps.



Proud to be a Super User!

daxformatter.com makes life EASIER!

View solution in original post

2 REPLIES 2
AJTK
Frequent Visitor

Thanks! That was really helpful. Appreciate your effort and time!

gmsamborn
Super User
Super User

Hi @AJTK 

 

Don't try to link two fact tables (Target, Production).

 

Instead, I would create dimension tables for Program and Region either by using "Enter Data" or Power Query.  (Usually that data is already available to you.)

 

I would also create a Date dimension table.

 

The dimension tables should be related to the fact tables using 1-to-many (1:*) relationships with the dimension table being on the "one side".

 

After that and a couple of simple measures, you should be able to slice/filter based on any or all of the 3 dimension tables.

 

Simple Star Schema.pbix

 

I hope this helps.



Proud to be a Super User!

daxformatter.com makes life EASIER!

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.

Top Solution Authors