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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
stefantaust
Frequent Visitor

Filter over 2 tables

Hello, I have two tables that aren't linked to each other. In the first table (blue), the value is selected using a filter visual. All "CP IDs" should then be displayed where the filter condition is met. Only the result for the respective filter should be displayed. Thanks, Stefan

 

stefantaust_0-1750231692488.png 

stefantaust_1-1750231737200.png

 

 

9 REPLIES 9
v-tsaipranay
Community Support
Community Support

Hi @stefantaust ,

Thank you for reaching out to the Microsoft Fabric Community, and we also appreciate the helpful insight already shared by @Elena_Kalina  .

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. If the response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.


Thank you.

Rupak_bi
Impactful Individual
Impactful Individual

Hi @stefantaust ,

if you really want the blue table as slicer, make an union table. That will solve the purpose. 



Regards
Rupak
FOLLOW ME : https://www.linkedin.com/in/rupaksar/
stefantaust
Frequent Visitor

Hello, thanks for the reply. I've created another example of what the result should look like.

 

stefantaust_0-1750236956587.png

 

Here are the names of the columns:

Table 1: Blue Visual: 
'Definition MM-Daten'[SOMA Profil]

Table 2: Result:
'Prozess Schritte'[Phase ID]
'Prozess Schritte'[ZPCO_FERT_01]
'Prozess Schritte'[ZPCO_KAUF_01]
'Prozess Schritte'[CP ID]

 

Judging by your screenshot, you have a table, and you want to create a filter with the options "Only KAUF" and "Only FERT" for this table. When selecting "Only KAUF", the table should only show data for ZPCO_KAUF_01 (hiding the ZPCO_FERT_01 column and empty rows in ZPCO_KAUF_01). The same applies to "Only FERT".

Since you only need this for display purposes, why not make it simpler?
Here’s how:

  1. Create two pre-filtered tables (one for KAUF, one for FERT).

  2. Add a toggle (e.g., buttons or slicer) to switch between them using Bookmarks.

This way, clicking a button will instantly show/hide the correct table—no complex DAX required

 

If this option suits you, I could write you instructions on how to do it

The idea of ​​a pre-filtered table would be great.

Can you give me instructions on how to do that?

Create two pre-filtered table versions (for "Only KAUF" and "Only FERT"), then follow the steps from the video to set up a toggle.

https://www.youtube.com/watch?v=5QMpc5fUV2I&t=97s

For your solution, you can also use radio buttons (like in the screenshots below) instead of a toggle.

 

Elena_Kalina_0-1750248809916.pngElena_Kalina_1-1750248853513.png

 

Hello, radio buttons aren't ideal. It would be better if I could filter using the blue list.

 

'Definition MM Data' [SOMA Profile]


I've created two prefiltered tables with only KAUF and only FERT:

FilterStatus ZPCO_KAUF_01 = CALCULATETABLE('Prozess Schritte', 'Prozess Schritte'[ZPCO_KAUF_01]="ZPCO_KAUF_01")

FilterStatus ZPCO_KAUF_01 = CALCULATETABLE('Prozess Schritte', 'Prozess Schritte'[ZPCO_KAUF_01]="ZPCO_FERT_01")

 
How can I solve it using the "blue" Visual filter, which only shows KAUF or FERT?

 

stefantaust_0-1750251007042.png

 

Elena_Kalina_0-1750251793758.png

Then my solution doesn’t suit you. When I suggested creating two filtered tables, I meant two visuals using the same underlying table. This would allow simulating a slicer using bookmarks. Apparently, you need these tables not just for display purposes after all

Elena_Kalina
Solution Supplier
Solution Supplier

Hi @stefantaust 

 I understand you want to filter the second table (Phase ID) based on selections in the first table (blue filter visual) without creating relationship between tables, am I right? Then try:

FilteredCPIDs = 
VAR SelectedCP = SELECTEDVALUE(FirstTable[CP ID])
RETURN
IF(
    ISFILTERED(FirstTable[CP ID]),
    CONCATENATEX(
        FILTER('Phase ID', 'Phase ID'[CP ID] = SelectedCP),
        'Phase ID'[CP ID],
        ", "
    ),
    "Select a CP ID"
)

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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