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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
SelflearningBi
Helper III
Helper III

How to create two different tables measures and relationships

I am new to Powerbi Please help me out 



SelflearningBi_2-1654613711007.png

 

SelflearningBi_1-1654613467269.png

 

 

I got two tables, one is the master table with all of the complated list of 2022 season order list( order qty, order value, model number, comment and so on) and the other one is delay table in which contains the amount of impacted quantity, reason of delaying, dealy weeks and so on.



I would like to see what percntage quanity of this season is get impacted and the percantage of the reason. 

I think I need to do:   Table 1 order quantity  - Table 2 Impact quantity    to see how many of them is being impacted and also do the %  by   using  (Table 1 order quantity  - Table 2 Impact quantity ) / table 1 total order quantity

My thought:

I would like to build relationship between these two tables. since all the information is not unique, Once I build relationship, i feel like I can  only create many to many.  
Since I am going to create different slicers by using Comment, Female, Factory Name and supplier name. ( im going to distinct them one by one to create new table for each based on two of my tables)

I use this measure to create my pie chart. 

Impacted Qty % = DIVIDE([Impacted Qty],SUM('FW22_5 30'[Confirmed Quantity(Total)]))

But its only show table 2 information, which the delay quantty and the reason. I would also like to show those not delay quantity, which should be dominated most of my pie chart.
 

 



SelflearningBi_1-1654598344620.png


I would like to show this pie chart as well  for week of delay , on time is from table 1, and the rest is from table 2

SelflearningBi_0-1654598545786.png

@v-yalanwu-msft @amitchandak

 

 

 



 



1 REPLY 1
v-chenwuz-msft
Community Support
Community Support

Hi @SelflearningBi ,

 

In power bi, the best structure is the star structure.

So, please create a table to via OrderIDTable = values('Table1'[OrderID]). Then create relationships between Table1 and OrderIDTable from many to one. And relationship between OrderIDTable and Table2 from one to many.

 

 

Best Regards

Community Support Team _ chenwu zhu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors