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
Anonymous
Not applicable

Filtering only visual, not data

Hi all

I have a stacked bar chart and I have some visual level filters.

I'm getting top 3 customer by sum of value. After that i want to add legend by type, but some of my customers type is null. When i filter on visual level filters, top 3 calculation is changing and wrong customers are coming on my chart. Because the logic works as first filter the data and then select the Top 3 customer by value. I don't want this logic.

Here is my example dataset

CustomerTypeValue
AX2
BY3
E 4
CX3
DY2
BY3
C 5
BX1
D 5
AX3
BY2
EX1
C 6

 

 

and example ss for this charts.

 

Screenshot_1.pngScreenshot_2.png


1 ACCEPTED SOLUTION
Anonymous
Not applicable

Create new measure as 
new_mea = CALCULATE(sum(Table1[Value]);all(Table1[Type]))

 

use this measure in top 3 filter instead of sum of value

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Create new measure as 
new_mea = CALCULATE(sum(Table1[Value]);all(Table1[Type]))

 

use this measure in top 3 filter instead of sum of value

v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous,

 

By my tests, there is no better ways to change that logic.

 

Actually, the filters will be interact with each other.

 

For your scenario, we could see that Type category is bigger than customer category, so it seems that it filter type first then select the Top 3 customer by value.

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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!

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.