Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Add the Count of Records with no References to a Many Side Table #19

Open
corycundy opened this issue Oct 28, 2021 · 2 comments

Comments

@corycundy
Copy link

When optimizing models it can be useful to filter the dimension records to only those referenced by a fact table. While that logic can be done in a view or Power Query or a Partition, it would be helpful to see the count of records for tables that are on the one side of a relationship that don't have references to any records on any of the many side relationships. If this number is large or the table is large and the removal of these records would help significantly, it is a fast way to find the need for the optimization. Business requirements might not always allow this optimization, but sometimes they do.

This would likely have to be a Table level attribute and only apply to tables that are on the one side of the relationship. This would be dimensions and not facts in true star schema. It would be great to see this information added within DAX Studio as well.

@marcosqlbi
Copy link
Collaborator

It's definitely doable, but my concern is that it could be slow, also very slow on large models.
Thus, it shouldn't be enabled by default, and it shouldn't be part of the "additional statistics information" we already have.
Therefore, we should plan having different level of details in the "advanced" statistics.
I don't think we'll work on that in the short term, but I'll think to implementing the feature the first time we review that area of the library.
Thanks!

@corycundy
Copy link
Author

corycundy commented Oct 29, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants