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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
bhalicki
Helper V
Helper V

Filter visuals with multiple checkboxes

Hi all,

Hoping someone has a better solution.

 

I have a client who would like to filter a table based on checkboxes.  Each checkbox may have different criteria.  Example below:

bhalicki_0-1747274229615.png

In the past, I have set this up using a measure which returns the total number of projects which meet the criteria (using COUNTROWS).  I then apply the measure to the table as a filter and filter everything where the measure returns one or more.

Project:

bhalicki_5-1747274395572.png

Expense:

bhalicki_1-1747274316916.png

FilterTable (disconnected table):

bhalicki_6-1747274435232.png

 

bhalicki_7-1747274458671.png


Filter Measure:

FilterMeasure =

SWITCH(TRUE(),
       /* No options selected, so show all options */
       NOT ISFILTERED(FilterTable), 1,
       
       /* both options must be selected, show:
            - Only projects with expenses
            - Projects with expenses >$2500
       */
       ISFILTERED(FilterTable) && SELECTEDVALUE(FilterTable[Column1])=BLANK(),
       CALCULATE(COUNTROWS(Project), Expense[ExpenseTotal] <> 0, Expense[ExpenseTotal] > 2500),
       
       /* Only "show projects with expenses" selected */
       ISFILTERED(FilterTable) && SELECTEDVALUE(FilterTable[Column1])="Show only projects with expenses",
       CALCULATE(COUNTROWS(Project), Expense[ExpenseTotal] <> 0),
       
       /* Only "show projects with expenses greater than $2500" selected */
       ISFILTERED(FilterTable) && SELECTEDVALUE(FilterTable[Column1])="Show projects with expenses greater than $2500",
       CALCULATE(COUNTROWS(Project), Expense[ExpenseTotal] > 2500))

 

bhalicki_8-1747274538074.png

 

Trouble is, I now have requirements to add more and more options to the filter list.  The amount of data to be filtered is also quite large, plus one of the pages has more than 10 card visuals, which all need to have the same filter logic applied.  So while this solution worked initially, it's not really scalable and hoping someone has a better solution.


Kind regards,

 

Ben.

 

 

 

1 ACCEPTED SOLUTION

Hi @bhalicki,

 

Thank you for reaching out to Microsoft Fabric Community.

 

Power BI cannot use two or more calculation items from the same calculation group at the same time.

Calculation groups are single select slicer, so they cannot behave like a checklist so every new selection overwrites the previous one. For a true multi select filter you will need a regular slicer that lists every rule.

So se the disconnected table with boolean flag for each rule and use a measure that checks whether any of the flags chosen in the slicer is TRUE for the current row.

 

If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it! 

 

Thanks and regards,

Anjan Kumar Chippa

View solution in original post

6 REPLIES 6
bhalicki
Helper V
Helper V

Hi @Jihwan_Kim , thanks for your reply, very much appreciated.

 

Calculation groups might be a nice solution, but from what I understand there isn't a way to handle multiple calculation items selected simultaneously?  I can see this discussed, but haven't been able to find a way to implement this in PowerBi?

 

Kind regards,

 

Ben.

Hi @bhalicki,

 

Thank you for reaching out to Microsoft Fabric Community.

 

Power BI cannot use two or more calculation items from the same calculation group at the same time.

Calculation groups are single select slicer, so they cannot behave like a checklist so every new selection overwrites the previous one. For a true multi select filter you will need a regular slicer that lists every rule.

So se the disconnected table with boolean flag for each rule and use a measure that checks whether any of the flags chosen in the slicer is TRUE for the current row.

 

If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it! 

 

Thanks and regards,

Anjan Kumar Chippa

Hi @bhalicki,

 

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution I have provided for the issue worked? or let us know if you need any further assistance.
If my response addressed, please mark it as "Accept as solution" and click "Yes" if you found it helpful.

 

Thanks and regards,

Anjan Kumar Chippa

Hi @bhalicki,

 

We wanted to kindly follow up to check if the solution I have provided for the issue worked.
If my response addressed, please mark it as "Accept as solution" and click "Yes" if you found it helpful.

 

Thanks and regards,

Anjan Kumar Chippa

Hi @bhalicki,

 

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution I have provided for the issue worked.
If my response addressed, please mark it as "Accept as solution" and click "Yes" if you found it helpful.

 

Thanks and regards,

Anjan Kumar Chippa

Jihwan_Kim
Super User
Super User

Hi,

I am not sure if I understood your question correctly, but try creating one Calculation Group and one Calculation Item to apply it to the page level (or all), instead of creating a filter measure and applying it measure by measure.

 

Create calculation groups in Power BI - Power BI | Microsoft Learn

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.