Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

Measure Not Working With Relationship?

Hi,

 

I have two tables.

 

First is the fact table with my transactions, in which I have the Customer Name and order intake.

Second is the dim table with Customer Name and Customer Segment, Customer Type.

 

There is a relationship between dim_Customer and fact_Install based on Customer Name. The relationship is many to one with a single cross filter direction.

 

There is also a calendar table because I have measures like:

Order-Intake-CY =
switch(SELECTEDVALUE(dim_Scenario[Scenario]),
"MTD",TOTALMTD([Order-Intake-Sum],'dim_Calendar'[Date]),
"QTD",TOTALQTD([Order-Intake-Sum],'dim_Calendar'[Date]),
"YTD",TOTALYTD([Order-Intake-Sum],'dim_Calendar'[Date]))

Order-Intake-Sum = 
sum(fact_Install[Order Intake])

 

Current Output:

 

Desired Output (I have used the column from fact_Install table instead of measure, but I need a measure to show various scenarios MTD QTD YTD):

 

 

5 Replies