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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello,
I'm experiencing an issue with a stacked bar chart in Power BI and hope to find some guidance here. The chart is designed to display data across three dimensions:
Data Structure Overview:
Issue Encountered:
Based on the data from the CSV file, for example, Company_1 should have a count of 85 emails, with 44 marked as "Y" (contacted) and 41 marked as "N" (not contacted). However, in Power BI, while the company name and count of emails display correctly, the legend counts are incorrect. Instead of showing 44 "Y" and 41 "N", it displays 85 "Y" and 81 "N".
I've attached screenshots for a clearer understanding of the issue. It seems there's a discrepancy in how the "contacted" status is being counted or displayed in the legend.
Could anyone provide insights or guidance on how to correct these legend counts to accurately reflect the data?
Thank you in advance for your assistance.
Solved! Go to Solution.
@amitchandak , Thank you very much for the answer. I found where the issaue was: There were some email addresses that had both conditions (Y and N). I used a different approach and now it is working.
@Riccardo_O , Is count or distinctcount. If it distinctcount and both legends have values over some time. So need to check the data
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
@amitchandak , Thank you very much for the answer. I found where the issaue was: There were some email addresses that had both conditions (Y and N). I used a different approach and now it is working.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!