Forum Discussion

itstechno's avatar
itstechno
New Member
1 year ago

Filter data from same data model in power bi

Hi all,

I have used table visual to show all below mentioned data 
Now if i click on row2 where station is EOLT2. I want to display all the data in another table visual where station have EOLT2.
I have this single model

ErrorTestNumberRetestMotorTypeStationDateStorkeID
OK11ManualEOLT11/1/2024ESSV_1a1
a11PWMEOLT21/2/2024ESSV_2a2
b10ContactEOLT31/3/2024ESSV_3a3
c10ManualEOLT41/4/2024ESSV_4a5
d10PWMEOLT51/5/2024ESSV_5a6
OK11ContactEOLT11/6/2024ESSV_6a1
OK21ManualEOLT11/7/2024ESSV_7a3
ac20PWMEOLT31/8/2024ESSV_8a4
a21ContactEOLT21/9/2024ESSV_9a5
b21ContactEOLT31/10/2024ESSV_1a6
b21PWMEOLT41/11/2024ESSV_2a7
r20ContactEOLT21/12/2024ESSV_3a3
OK30PWMEOLT31/13/2024ESSV_4a6
a30PWMEOLT41/14/2024ESSV_5a7
a30ContactEOLT51/15/2024ESSV_6a12
c31ContactEOLT11/16/2024ESSV_7a34
OK11MotorTypeEOLT31/17/2024ESSV_8a12
OK21PWMEOLT51/18/2024ESSV_9a13


Looking for help and support

4 Replies

  • Hi itstechno 

     

    Yes, you can achieve this by setting up visual interactions in Power BI. Here's how:

    1. Create Two Table Visuals:

      • Table 1: Add your data fields to display all records.
      • Table 2: Add the fields you want to display when filtered.
    2. Enable Cross-Filtering:

      • By default, selecting a row in one table filters other visuals. Ensure this is enabled.
      • If not, go to the "Format" tab on the ribbon and select "Edit Interactions."
    3. Adjust Visual Interactions:

      • With Table 1 selected, check the icons above Table 2.
      • Make sure the filter icon (funnel) is active for Table 2. This means Table 1 will filter Table 2 based on your selection.
    4. Set Up the Filtering Field:

      • Ensure the "Station" column is included in both tables or properly related in your data model.
      • This allows Table 2 to filter data based on the "Station" selected in Table 1.
    5. Test the Interaction:

      • Click on a row in Table 1 where Station is EOLT2.
      • Table 2 should now display all records where Station = EOLT2.
    6. Optional – Disable Unwanted Interactions:

      • If you don't want Table 2 to affect Table 1, ensure the filter icon is turned off when Table 2 is selected.

    Note:

    • Data Model: Since you have a single data model, ensure there are no conflicting relationships.
    • Selection Mode: Ensure that the selection in Table 1 is set to single-select if you want to filter by one station at a time.

    By configuring the visual interactions, you can display all data in the first table and have the second table show data filtered by the station selected in the first table.

     

     

    If this post helps, please consider accepting it as the solution to help the other members find it more quickly.

    Appreciate your Kudos!! 

     

    LinkedIn|Twitter|Blog |YouTube 

  • Hi VahidDM , I am still no able to filter the data in 2nd table visual as per selection in first table visual
    Here is my data model

    Cross filtering is enabled 

    But I am getting single row only in 2nd table visual when I select row in above table

     

    • Jai-Rathinavel's avatar
      Jai-Rathinavel
      Super User

      itstechno Select your relationship and set your cross filter direction to both like below.


      Did I answer your question? Please mark this post as a solution.

       

      Thanks,

      Jai

  • Hi,

    What happens when you click on EOLT2 (not the row but just the text EOLT2)?  Also, consider using a slicer and select EOLT2 there.