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

Is it possible to create a pie chart between two tables

I am new to power bi still on learning path. I would like to create a pie chart between two of my table.  
Table 1:  Contains all of my Products  
Table 2: Only Contains Impacted Products and look like following table: with reason, ,weeks of delay being impacted and so on. 

SelflearningBi_0-1654833359644.png

 

I would like to create pie of pie chart look like this:  ( Or smiliar) 

SelflearningBi_1-1654833550300.png

 

On time % is from Table 1 (total quantity)
Other% is from table2 (impact quantity)

and those other covid impact, t2 material is from table 2 the reason( impact quanitty by reason) 

I try this,, but dont think it right. 

SelflearningBi_2-1654833750636.png

 




 

 

10 REPLIES 10
Hariharan_R
Solution Sage
Solution Sage

Hi,

it would be good if you share some sample data from both the table. There are different approaches. You can see below approach using calculated column in main product table.

 

Sample PBIX file - PowerBICommunity/Help.pbix at main · rhariharaneee/PowerBICommunity (github.com)

 

Help.png

 

Thanks

Hari

@Hariharan_R 
Thank for helping, but what if i dont have 1 to 1 relationship ? 
I have also posted similar dataset that im using. 
I would also later to create slicers by using Name, S/O and supplier name, BU, and calcualte the differenct between this table:% of quantity being impact 

is it possible to do cross table calcualtion like this: Order Quantity - Impact Quantity  and the impacted %? 

Order Table 1

NameBUSupplier NameFactory NameModel NumberS/OOrder Quantity
JackAPPAKK11IDE10
FIFIFWAKK11IDE5
AmyAPPAC12ICH2
AmyAPPBB13IPP10
AmyFWBB14IDE10
AmyAPPCKK66IDE10
AmyAPPCKK89IDE10
AmyHWDD12ICC10
AmyAPPCKK66IDE10
JackFWCKK89IDE10
JackAPPDD12ICC10
JackAPPGGG10IDE10
JackFWGGG1IDE10
FIFIAPPGGG1ICC10
FIFIAPPGKK15IDE10
FIFIFWFO17IDE10


Delay Table 2

NameBUSupplier Name
 
Factory Name
 
Model Number

S/OImpact QuantitySolutionReasonWeek of delayImpacted Qty
JackAPPAKK11IDE10GOODCOVID IMPACT1 WEEK3
FIFIFWAKK11IDE5GOODMATERIAL2 WEEK3
AmyAPPAC12ICH2GOODCOVID IMPACT3 WEEK1
AmyAPPBB13IPP10GOODMATERIAL2 WEEK3
AmyFWBB14IDE10GOODMATERIAL1 WEEK3
AmyAPPCKK66IDE10GOODCOVID IMPACT1 WEEK4
AmyAPPCKK89IDE10BADMATERIAL2 WEEK4
AmyHWDD12ICC10BADCOVID IMPACT4

 

Hi,

You can concatenate the first 6 columns to make a distinct values on both the tables and can build a relationship between the tables. Check the cardinatlity on the relationship. You can use RELATED or RELATEDTABLE DAX functions get the values from one table to another as a calculated columns. You also can acheive through DAX using the relationship between the tables.

 

Thanks

Hari

@Hariharan_R 

fda13c5dd13cedbff0111b2029fa0df.png


Hi, and coudl you show me how to do this?  the dark blue color is from table 1 master and others is from table 2. Not sure how to do it 

Hi,

You need to have one calculated column created in the main table where you have all products. using the "RELATED" function. This column should have the required value for the visual.

 

Thanks

Hari

@Hariharan_R Hi,
I did concatanate both my table, I still get many to many relationship, so I distanct my concatnate table, it turns into one to many, but i cant use the RELATED function now. 

SelflearningBi_0-1655115295631.png

 

Anonymous
Not applicable

Hi @SelflearningBi,

If the related function does not work for your scenario, you can also try to directly use the Dax function to extract the current value and use it as a condition to lookup other tables to get corresponding field values.

Introducing LOOKUPVALUE - SQLBI
Regards,

Xiaoxin Sheng

Dhacd
Resolver III
Resolver III

Good Day @SelflearningBi ,
This can be achieved by drillthrough page in powerbi.
I can attach screenshots on how to do this if requires. 

Thanks and regards,

Atma.

@Dhacd yes, could you please attach the scresshot how to do do this, many thanks.

You need to create a drill-through page. which means the add another page and then adding the reasons visual to that page. And in the drill through section add the measure you have used in the first visual and filter it for other reasons.

Dhacd_0-1654838640154.png

 you can right-click to the first visual(on other reason area of the pie chart) and click on drill through .you will be redirected to this page

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

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!

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