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
Anonymous
Not applicable

how to do dynamic comparison between a selected company and rest of companies

Hi PowerBI community, I need to do a dynamic analysis compare the pv share by customer groups between a selected single company and the rest of the market. Now I create 2 measures, it seems to work for most scenarios.

 

PV all company = CALCULATE(SUM('550 check'[pv]),ALL('550 check'[company]))

PV ROVC = [PV all company]-SUM('550 check'[pv])
 
I use company as a slicer. When I select different company, Chart B won't change. Chart C represents the pv share of the company I selected, Chart A will show the difference between Chart B and Chart C.
conxu_0-1634678360392.pngconxu_1-1634678410961.png

 

But if I select a company that only has one customer group, these charts won't work as I wished.
conxu_2-1634678590468.png

 

How can I achieve Chart A & Chart B still have 2 customer groups' data if when I select a company with only 1 customer group? Thank you!

 
2 REPLIES 2
YukiK
Impactful Individual
Impactful Individual

Do you have some sample data for this? I'm thinking adding ALL(customer group) might help, but I'd be able to further examine with some data.

Anonymous
Not applicable

I made up some numbers, but should work. Let's assume the market only has 3 companies now:

companycustomer grouppv
Aaffluent7228
Acore9104
Baffluent6984
Bcore8274
Ccore8778

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.