cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
db2907
Helper II
Helper II

Column Bar chart filtered by Top N Values in Power BI Paginated Report.

Let's supposed I have this dataset:

db2907_0-1694114977222.png

If I order it by Value (Z->A), I get this:

db2907_1-1694115013829.png

If I create a column chart based on the Top 6 Values, I'm getting the right result:

db2907_2-1694115085832.png

But if I try to do the same with the Area, I'm getting all the Values in the chart:

db2907_3-1694115144637.png

This is the configuration for the category group:

db2907_4-1694115181646.pngdb2907_5-1694115190696.png

What do I need to change in order to reach the expected result, just the 6 first values represented in the column chart by area.

This would be result that we need: The top 6 values (aggregared) represented in their respective areas, without modifying the original dataset, only throught the configuration of the visualization :

db2907_0-1694448200624.png

 

 

 

 

3 REPLIES 3
d_gosbell
Super User
Super User

I don't understand what you are expecting here. There are only 3 areas in your data, so when you ask for a top 6 you get all 3 areas since there are not more than 6 areas. What behaviour are you expecting?

Hi, @d_gosbell  thanks for your reply. I have updated the post. The idea is to see only the top 6 values represented in the column chart (by area), but without touching the original dataset, just using the configuration of the visual. The dataset is used in other visuals. 


@db2907 wrote:

The idea is to see only the top 6 values represented in the column chart (by area), but without touching the original dataset, just using the configuration of the visual. The dataset is used in other visuals. 


So you cannot do this just using the group configuration. There is no way to alter the order of the grouping and filtering in the chart configuration.

 

I think your only option is to create a second copy of the dataset, do your top N filtering there. Or an even better approach would be to do the Top N in the query for that second dataset so it's done at the source rather than in the reporting layer. Then you can build both your charts off that new dataset.

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors