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

Forcing a table in a join to be used in a table view

I have a SQL query which I am trying to replicate in Power BI

1. There's 5 tables of which 2 of them are not involved in the report 

2. Business wants this join to be used as it filters a set of records

3. I tried including a column and hiding it by reducing the size, but because of the cardinality, record numbers go up

4. I tried using USERELATIONSHIP function but its not about calculating one measure its about the entire report (table view) filtered by these joins

 

can we force the query to include the other two tables in the table view data generation.

1 REPLY 1
edhans
Super User
Super User

If you want to filter out records in one table based on data in another table, the best place to do this is in Power Query, which supports joins. The DAX model doesn't use Joins in the same way SQL and other relational databases do. Those are filters, and you can only use one at a time per table, as you've found, and inactive relationships cannot filter at all for slicers, etc.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

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.