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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
conxu
New Member

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.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors