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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Text filter on unrelated tables

Looking to filter an ID between 2 unrelated tables\

i have a text filter that upon entering a value will filter both tables

PowerBi_Batman_0-1627023335930.png

 

 

Table 1 field is called ParentID

Table 2 field is called Case ID

 

the numbers in tables have the same values but i cannot relate the tables with causing circular relationships

 

any help would be appreciated

thanks

6 REPLIES 6
selimovd
Super User
Super User

Hey @Anonymous ,

 

in this case you can filter it with CALCULATE. Like this you can use a value from one table and use it as a filter criteria for the other table.

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 
Anonymous
Not applicable

@selimovd 

still unsure how to apply it 

i tried this formula with no luck

CALCULATETABLE(FILTER(
ALL('TABLE1'),
'TABLE1'[Id] in VALUES('TABLE2'[SF ID])
))

i get the error "The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value."

so not sure where to go as the next step here

then ive created a new table with the above formula, do not get any errors but unable to filter

Hey @Anonymous ,

 

maybe you can explain what exactly you want to do. CALCULATETABLE creates a table when the data model is loaded. From then on the table will not react to the selection of slicers.

 

If you want for example to change a measure based on the slicer, you could use something like this:

Sales by ID =
VAR vSlicerID = MAX( SlicerTable[SlicerID] )
RETURN
    CALCULATE(
        SUM( Sales[SalesAmount] ),
        Sales[SlicerID] = vSlicerID
    )

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

 

Anonymous
Not applicable

@selimovd 

i am trying to filter on 2 unrelated tables with a single text filter visualisation


when i join the 2 tables i get a circular reference error so i am forgoing that and trying to have a single input that will filter the relevant information in 2 separate table visuals, which in this case is 2 separate data models that have the same ID in both tables

i do not need any aggregation, i just want to filter on the specific information



Hey @Anonymous ,

 

when you use a measure you always need an aggregation.

When you don't use a measure (e.g. calculated table or column) it's not dynamic, so it won't react to any slicer. So you need an aggregation for sure.

 

Can you share the file or explain with an example what exactly you want?

 

Best regards

Denis

Anonymous
Not applicable

is there documentation you can provide?

 

thanks

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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