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
Kutti
Frequent Visitor

Create a comparison Report chart of an account with rest of the other account

I have a requirement of creating a comparision chart using powerBi (some thing as like shown below) . Based on the selected slicer value, it should show the chart's (first bar should have the % value of the selected data (e.g: SAP from below screen)  and next bar should contain all the other data's (e.g : Except SAP all other like BGR,DST,SWQ,GDA,KRP,SWE) 

 

Sample output ChartSample output Chart

It will be great if someone able to help me to generate these report 

Note : the above screen shot is created using mspaint 🙂 

2 REPLIES 2
v-sihou-msft
Microsoft Employee
Microsoft Employee

@Kutti

 

In this scenario, I suggest you create two measures, one apply ALLSELECTED() filter, then other use ALL() filter minus ALLSELECTED().

 

Selected Account Sales = CACULATE(SUM(Table[Sales]),ALLSELECTED(Table[Account]))
Other Accounts Sales = CACULATE(SUM(Table[Sales]),ALL(Table[Account]))-CACULATE(SUM(Table[Sales]),ALLSELECTED(Table[Account]))

 

Regards,

Hi ,

 

Thanks for your reply . 

 

Newly created measures are giving th expected output . But that measure value is not poissble to add as part of the X-axis in the chart . So please let me know is there any way I can do that  (measure needs to be added as part of X-axis in the stacked chart).

 

 

Regards,

Kutti

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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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