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

How to hide specific calculation items in a slicer regarding the selection of another slicer

I have 2 slicers on my dashboard to  control a graphic: 

-the first one to be selected is about the customer status: if he has a customer card or no. It is based on a calculation group.

-the second slicer is a KPI slicer (revenue, buyer, aov...) and it´s also based on another calculation group: regarding the customer status, I have different metrics.(switch function) 

 

My problem is: I want specific KPIs to disappear from the second slicer when we select the status: "no customer card" in the first slicer.(in my case for example the buyer KPI should not be shown in the second slicer, only revenue and aov)

 

I didn´t find any clue, I only get to put a BLANK() in the switch metric of the second clicer so that no result are being showed in the final graphic if we select: no-customer card and buyers. But it would be nicer just no to show the buyer KPI in the slicer otherwise are my clients wondering what´s going on....

 

Thanks for your help!

 

1 ACCEPTED SOLUTION
DataInsights
Super User
Super User

@Anonymous,

 

I was able to adapt the creative solution in the blog post below (kudos to the author!).

 

https://sqlitybi.com/how-to-filter-calculation-group-with-another-table-or-dimension/ 

 

1. Create a table named Slicers. This table defines the valid combinations of Customer Status and KPI. Each slicer will be based on this table. This table has no relationships.

 

DataInsights_1-1664128821863.png

 

2. Create a calculation group CalcGroupKPI with a calculation item for each measure you want to use. Example: the AOV calculation item would reference the measure [AOV].

 

DataInsights_3-1664129096266.png

 

3. Create the measure [Metric] and add to a visual:

 

Metric = 
CALCULATE (
    SELECTEDMEASURE (),
    CalcGroupKPI[KPI] = SELECTEDVALUE ( Slicers[KPI] )
)

 

4. Result:

 

DataInsights_4-1664129280019.png

---

DataInsights_5-1664129300514.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

3 REPLIES 3
DataInsights
Super User
Super User

@Anonymous,

 

I was able to adapt the creative solution in the blog post below (kudos to the author!).

 

https://sqlitybi.com/how-to-filter-calculation-group-with-another-table-or-dimension/ 

 

1. Create a table named Slicers. This table defines the valid combinations of Customer Status and KPI. Each slicer will be based on this table. This table has no relationships.

 

DataInsights_1-1664128821863.png

 

2. Create a calculation group CalcGroupKPI with a calculation item for each measure you want to use. Example: the AOV calculation item would reference the measure [AOV].

 

DataInsights_3-1664129096266.png

 

3. Create the measure [Metric] and add to a visual:

 

Metric = 
CALCULATE (
    SELECTEDMEASURE (),
    CalcGroupKPI[KPI] = SELECTEDVALUE ( Slicers[KPI] )
)

 

4. Result:

 

DataInsights_4-1664129280019.png

---

DataInsights_5-1664129300514.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

Hi @DataInsights 

it is working but I´m still not sure how excatly.

You didn´t mentioned how you filtered the visual with the metric.

I put the condition: contains 1 or contains 2.

And it´s working.

 

Thanks

@Anonymous,

 

The visual should automatically be filtered by the Metric measure and the KPI slicer. Do you have interactions enabled between the KPI slicer and visual? Interactions between the Customer Status slicer and the visual have no impact.

 

DataInsights_0-1664286020891.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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