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
TViljoen
Regular Visitor

Dynamic Grouping based on a slicer

Hi There

 

I have a slicer with the Customer Name and then a Values Column Based on the Sales Value of each customer.

 

What I want to do is select a few Customers from a slicer and then Their Sales Values will show on a visual, but all the other Customers (Not Selected) must also show 

Thus : 
1. Select Cust1, Cust3 from slicer

2. in Visual Cust1 and Cust3 Data is shows (With Legend showing their Names) and then a Third Legend unit (Other) for the sum of all the rest)

 

Anybody have any Ideas?

1 ACCEPTED SOLUTION

Hi,

PBI file attached.

Hope this helps.

Ashish_Mathur_0-1713176596670.png

 


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

View solution in original post

7 REPLIES 7
Ashish_Mathur
Super User
Super User

Hi,

In the attached file, you may refer to my solution to a similar problem.

Hope this helps.


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

Thanks @Ashish_Mathur 

 

This is a great starting point, but When i filter on lets say Violation1 and Violation2:

 

The Other Value becomes 0 - becasue the measure is then only incorporating the Values of those Two Errors - and thus my Error Other becomes 0

 

Is there a Way to Pivot Away from the TopN focus, and more on the Spesific Violations Selected?

 

Hi,

PBI file attached.

Hope this helps.

Ashish_Mathur_0-1713176596670.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi @Ashish_Mathur,

 

Thank you for the solution, I would like to ask if it is possible to achieve the other way round?

I want to group the selected values from the slicers as "others" while the unselected will be shown as is instead.

Desired output:

1. select cust1 and cust2 from slicer 

2. In table visual cust1 and cust2 grouped as "other", and cust3 and cust4 show individually 

Customervalue
other (cust1+cust2)300 (100+200)
cust3200
cust4300

 

Thank you.

 

Regards,

Ronald

You are welcome.  I am not sure.  Furthermore, i cannot understand the business sense in doing so.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi @TViljoen ,

Based on your requirements, I firstly create a table.

vyilongmsft_0-1713146503114.png

Then I create a new table.

 

Table 2 = VALUES('Table'[Name])

 

Also I create a measure.

 

Measure =
IF (
    SELECTEDVALUE ( 'Table'[Name] ) IN VALUES ( 'Table 2'[Name] ),
    BLANK (),
    SUM ( 'Table'[Sales] )
)

 

Finally when we select the Cust we want, the unselected will also be shown.

vyilongmsft_1-1713146745490.png

 

 

 

Best Regards

Yilong Zhou

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

Hi @Anonymous 

This is almost what I need, 

 

The only thing is that, i need to add therse to a line graph where the selected Cust (Values) as well as their name in the legend. And the Rest (Not selected) is grouped together as lets say: "Other" on the graph

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.

Top Solution Authors
Top Kudoed Authors