Best Practices w/ dim_Customer (1M) set to BOTH or ONE Way to multiple Facts #1311
TinyTimothy2
started this conversation in
Data Modeling
Replies: 1 comment
|
Hi @TinyTimothy2 Bellow, I have a DAX query that is set up the way you describe your scenario, and in the first line e.g. I can see a customer who does not have orders, but have been invoiced and are counted by the [# Customers] If I misunderstand your question, could you create a demo model to share that shows the issue you are facing? |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
I have 2 Fact tables:
Fact_A
Fact_B
I have conforming dimensions
Dim_Date Filter One Way to Fact_A and Fact_B
Dim_User Filter One Way to Fact_A and Fact_B
Dim_Customer Filter BOTH ways to to Fact_A and Fact_B
The reason for customer to be BOTH ways by default is because I need to run analysis such as
Show All customers and all customer attributes even if they do not have a record in FACT_A or Fact_B
I have measures that gives count of customers from Fact_A and Fact_B
[Total Customers w/ Fact A]= DISTINCTCOUNT(Fact_A[Cust_ID])
[Total Customers w/ Fact B]= DISTINCTCOUNT(Fact_B[Cust_ID])
Measure for Total Customers (can be either in A or B or in for other reasons, future, past, other future Fact Uses.
[Total Customers] = Countrows(dim_Customer)
Pretend I have
[Total Customers] = 100
[Total Customers w/ Fact A]=20
[Total Customers w/ Fact B]=10
It seems like if I have a table that shows:
CustID, Name, City, Region, [Total Customers], [Total Customers w/ Fact A], [Total Customers w/ Fact B]
I need to have the DEFAULT Dim_Customer Filter BOTH ways to to Fact_A and Fact_B
I am now understanding that is probably not the safest way and perhaps still loading all customers in dim_Customter with
DEFAULT Dim_Customer Filter One way to to Fact_A and Fact_B and use Crossfilter in measures set to BOTH is better option?
My model is very large billion rows in facts and 1 M in customer dim.
Thoughts?
All reactions