Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi all.
I have a dimension that has a great number of rows. My model has a table of facts that does not need all the rows in the dimension table. The question is: How can I bring to my model just the relationed rows between both tables? I take all the facts, however I would like to bring just the dimension rows connected with the facts, not all of them as I do now.
Thanks in advance.
Solved! Go to Solution.
Hi @Bimtng
What you could do, is in your SQL Query, you could write the TSQL for your Dimension table that it only brings the Dimension ID's where they exist in your Fact Table
EG:
Select * from DimensionTable where DimensionID in ( Select Distinct DimensionID from FactTable )
That result will be your Dimension table will only bring in the related DimensionID from your Fact table.
Hi @Bimtng
What you could do, is in your SQL Query, you could write the TSQL for your Dimension table that it only brings the Dimension ID's where they exist in your Fact Table
EG:
Select * from DimensionTable where DimensionID in ( Select Distinct DimensionID from FactTable )
That result will be your Dimension table will only bring in the related DimensionID from your Fact table.
I do not know if I have understood your question. Both tables are in a SQL Server database.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
70 | |
55 | |
37 | |
31 |
User | Count |
---|---|
83 | |
64 | |
63 | |
49 | |
45 |