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! Learn more

Reply
tintin64
New Member

Stacked Column Chart with a dynamic top n as a legend

Hello guys, I have the data  of 5 different companies,  selling 10 different products across 3 different region across various time frames. I need to make a stacked column chart which shows  (the top 3 products +others)   as legend based on slicer selection.
(different slicer selection have different top 3 and based on slicer selection always the top 3 and others must be recalculated)

tintin64_0-1732785303833.pngtintin64_1-1732785351444.png

 

1 ACCEPTED SOLUTION

Hi @tintin64 

Based on your sample data, the logic has been created. Hope this solves your purpose. you need to create a product master table and a measure to canculate topN. plz dont create any relationship between tables. Here Tbl3 is a table of single value vreated by manual entry.

 

Rupak_bi_1-1732799700960.pngRupak_bi_2-1732799751863.png

Rupak_bi_3-1732799902060.png

 



Regards
Rupak
FOLLOW ME : https://www.linkedin.com/in/rupaksar/

View solution in original post

5 REPLIES 5
Ashish_Mathur
Super User
Super User

Hi,

I have solved a similar problem in the attached files.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
tintin64
New Member

tintin64_0-1732785122286.pngtintin64_1-1732785176526.png

 

Hi @tintin64 

Based on your sample data, the logic has been created. Hope this solves your purpose. you need to create a product master table and a measure to canculate topN. plz dont create any relationship between tables. Here Tbl3 is a table of single value vreated by manual entry.

 

Rupak_bi_1-1732799700960.pngRupak_bi_2-1732799751863.png

Rupak_bi_3-1732799902060.png

 



Regards
Rupak
FOLLOW ME : https://www.linkedin.com/in/rupaksar/

Thank you very much, it worked

Rupak_bi
Super User
Super User

please share sample data with desired output along with slicer details.



Regards
Rupak
FOLLOW ME : https://www.linkedin.com/in/rupaksar/

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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