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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
MahmutGuler
Regular Visitor

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
v-cgao-msft
Community Support
Community Support

Hi @MahmutGuler ,

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.