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

Can Parameter Filter All Dataset?

Hello Power BI Community,

 

I am currently working on a Power BI report focusing on item usage statistics within the PowerBIUserActivity dataset. My goal is to allow users to filter the entire report dynamically based on a specified activity range. I have a slicer for the 'Activity Number'[Activity Number] column, and I want this slicer to influence all visuals related to the ItemName column.

 

Here are the key components of my solution:

 

  • Activity Number Table: I have a table named 'Activity Number' with the 'Activity Number'[Activity Number] column, generated:
    1. Using the DAX formula: Activity Number = GENERATESERIES(0, 10000, 1)

 

  • TotalActivities Measure: I'm using the following measure to count the activities, considering the selected activity range from the slicer: TotalActivities = COUNT(PowerBIUserActivity[ActivityId])

 

  • Slicer Implementation: I have created the following measure to filter the Items in terms of their activity counts. The measure:

 

    • ActivityFilter = IF([TotalActivities]>= MIN('Activity Number'[Activity Number]) && [TotalActivities] <= MAX('Activity Number'[Activity Number]),1,0)  
  • Filtering: The idea is that changing the slicer values will dynamically filter all visuals and tables related to ItemName based on the selected activity range. However, this is only work where I can put my activity filter on additional filter on the tables. I cant add this measure to all page because not all my tables and graphs have item name directly or activity related information. But I want to filter my dataset with this Activity Range Slicer (Parameter). Is this possible to do it or is there any other way of doing this?

 

Request for Feedback: I would like to know if there's a more efficient or alternative way to achieve this goal. Any feedback, suggestions, or insights from the community would be highly appreciated.

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous ,

1. First of all, an optimized model of the star structure is a prerequisite for everything, which will avoid a lot of potential trouble.
The importance of star schemas in Power BI - SQLBI

2. I'm assuming that some tables are located where the crossfilter can't be passed, and you can use the crossfilter function in some MEASURES to appropriately adjust the crossfilter direction to be both-directional.
CROSSFILTER - DAX Guide

3. There doesn't seem to be a great way to do this for tables that don't have relational joins nor related fields.

There is a dynamic M query parameter under DirectQuery, but based on your description it doesn't look like it applies to your case.
Dynamic M query parameters in Power BI Desktop - Power BI | Microsoft Learn

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum -- China Power BI User Group

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.