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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

How to not have duplicate values counted in pie chart?

I am new to Power BI and I am trying to make a pie chart from two tables. 

My first table is a list of all the vehicles we sold in 2022 and my second table is a list of all the vehicles that were sold in 2022 but repossessed in the same year.

The total in my first table is 507 and the total in my second table is 73. I need the 73 to show up as a portion of the 507, but rather it's showing up seperate.

I've already created a one-to-one relationship between the two tables linking the account numbers. 

I hope this makes sense. It should be 507 total with 73 as a portion of the 507, making the percentage 14.40%

 

Can someone let me know if there is a way to only count the same contracts once?

Or, should I go back and change my data with one table containing only accounts that are still active from last year and one table containing the sold & repossessed accounts from last year?

 

 

Screenshot 2023-05-04 161928.png

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

Here's a general idea.  Create a calculated column formula in Table 1 to bring over the Date of repossession from Table2.  Write another calculated column formula in Table1 to show the status (Repossessed and Active) based on whether the new new column that you created has a date or not.  Now write your measures.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
amitchandak
Super User
Super User

@Anonymous , Check if custom labels can help

Custom label
https://www.youtube.com/watch?v=IH4bcHhxunw
Dynamic Label
https://www.esbrina-ba.com/time-intelligence-dynamic-legend-in-line-charts/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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!

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