Forum Discussion

athuiraps's avatar
athuiraps
Frequent Visitor
5 years ago

it Possible to do Dax Calculations when we use two Direct Query Tables?

Is it Possible to do Dax Calculations when we use two Direct Query Tables?

I have two direct query data sources, am trying to create a calculated column using two fields from that.

While using the DAX function "RELATED" to I receive an error.

 

 DATEDIFF(RELATED('Quarter dates'[End Date]]),Effectivedatetable[EffectiveDate],DAY)+1

 

Both tables are in direct query mode.

Relationship: Quarter dates (one) has a relationship with Effectivedatetable (many) (This two tables are from two different data source.)

Cardinality = Many to One (*:1)

Cross filter direction = Both

Make this relationship active = Checked

4 Replies