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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
BicBiro
New Member

Filtering help

Hey all, 

I'm hoping you can help - I have some data - which shows users from which groups who have used some tools, I want to understand which groups of users have used multiple tools so that I can see what tools are most often used together.

The idea is that I will be able to gain insight about which tools are used together within the groups, and use that to cross-sell additional tools to other groups with similar profiles. 

 

However, I want to be able to filter to show all tools which have been used alongside a specific tool. 



For example:

USER AGROUP ATOOL Z20 May 2025
USER BGROUP ATOOL Y20 May 2025
USER AGROUP ATOOL X20 May 2025
USER CGROUP BTOOL Z21 May 2025
USER AGROUP ATOOL Y21 May 2025
USER DGROUP CTOOL Z21 May 2025
USER DGROUP CTOOL Y21 May 2025

 

I want to be be able to filter this for all Groups which use Tool Y and any other tools - so I'd get - Group C, Group A and a list of all the tools used in each group. 

 

Is this doable with advanced filters? I've tried Includes Tool Y AND * but this doesn't work...

1 ACCEPTED SOLUTION
DataNinja777
Super User
Super User

Hi @BicBiro ,

 

You can accomplish this in DAX by creating a new Calculated Table. This approach generates a filtered version of your data based on the multi-step logic you need: first finding the groups that use a specific tool, and then showing all data for those groups.

Here is the DAX expression you would use. Simply replace 'YourTable' with the name of your actual data table and "Tool Y" with the specific tool you wish to filter by.

FilteredTable = 
VAR TargetGroups =
    CALCULATETABLE (
        VALUES ( 'YourTable'[GROUP] ),
        'YourTable'[TOOL] = "Tool Y"
    )
RETURN
    FILTER (
        'YourTable',
        'YourTable'[GROUP] IN TargetGroups
    )

This DAX code works by first creating a temporary variable named TargetGroups. This variable holds a distinct list of all groups that have at least one entry associated with "Tool Y". The RETURN statement then executes the main logic, which iterates through your original table and keeps only the rows where the group name is found within the TargetGroups list created in the first step. The result is a new table in your data model that contains the complete tool usage for only the groups that meet your criteria.

 

Best regards,

View solution in original post

4 REPLIES 4
v-nmadadi-msft
Community Support
Community Support

Hi @BicBiro ,

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided by the community members for the issue worked.

 

Thanks and regards

v-nmadadi-msft
Community Support
Community Support

Hi @BicBiro 

I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions.


Thank you.

v-nmadadi-msft
Community Support
Community Support

Hi @BicBiro 

May I check if this issue has been resolved? If not, Please feel free to contact us if you have any further questions.


Thank you

DataNinja777
Super User
Super User

Hi @BicBiro ,

 

You can accomplish this in DAX by creating a new Calculated Table. This approach generates a filtered version of your data based on the multi-step logic you need: first finding the groups that use a specific tool, and then showing all data for those groups.

Here is the DAX expression you would use. Simply replace 'YourTable' with the name of your actual data table and "Tool Y" with the specific tool you wish to filter by.

FilteredTable = 
VAR TargetGroups =
    CALCULATETABLE (
        VALUES ( 'YourTable'[GROUP] ),
        'YourTable'[TOOL] = "Tool Y"
    )
RETURN
    FILTER (
        'YourTable',
        'YourTable'[GROUP] IN TargetGroups
    )

This DAX code works by first creating a temporary variable named TargetGroups. This variable holds a distinct list of all groups that have at least one entry associated with "Tool Y". The RETURN statement then executes the main logic, which iterates through your original table and keeps only the rows where the group name is found within the TargetGroups list created in the first step. The result is a new table in your data model that contains the complete tool usage for only the groups that meet your criteria.

 

Best regards,

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors