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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Bar Chart - Display Top N, Bottom N and everything in between on separate charts

Hi everyone, 

 

I need to create a bar chart comparing averages, which will be exported into a PowerPoint file. The client wants each data point displayed on a slide with 5 bar graphs per slide. When the file is published, they don’t want to filter the content; they want the slides to dynamically show the required data.

 

I can set up pages for the top 5 and bottom 5 data points, but I’m struggling with how to handle the data in between. Any suggestions?

 

neta2059_0-1731079446734.png

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, @Anonymous 

 

I've modeled some data that I hope fits your situation.

vzhangtinmsft_0-1731311499941.png

For data between Top N and Bottom N:

Measure between = 
Var _table1=CALCULATETABLE(VALUES('Table'[Product]),FILTER(ALL('Table'),[Rank asc]<=5))
Var _table2=CALCULATETABLE(VALUES('Table'[Product]),FILTER(ALL('Table'),[Rank desc]<=5))
Var _table3=UNION(_table1,_table2)
RETURN
IF(SELECTEDVALUE('Table'[Product]) in EXCEPT(VALUES('Table'[Product]),_table3),1,0)

vzhangtinmsft_1-1731311615996.png

Please see the attached document.

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi, @Anonymous 

 

I've modeled some data that I hope fits your situation.

vzhangtinmsft_0-1731311499941.png

For data between Top N and Bottom N:

Measure between = 
Var _table1=CALCULATETABLE(VALUES('Table'[Product]),FILTER(ALL('Table'),[Rank asc]<=5))
Var _table2=CALCULATETABLE(VALUES('Table'[Product]),FILTER(ALL('Table'),[Rank desc]<=5))
Var _table3=UNION(_table1,_table2)
RETURN
IF(SELECTEDVALUE('Table'[Product]) in EXCEPT(VALUES('Table'[Product]),_table3),1,0)

vzhangtinmsft_1-1731311615996.png

Please see the attached document.

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Thank you so much. 

Ritaf1983
Super User
Super User

Hi @Anonymous 

Please provide a workable sample data and your expected result from that. It is hard to figure out what you want to achieve from the description alone.  

https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.