Forum Discussion

martaredondo's avatar
martaredondo
Helper II
6 years ago

IF/SWITCH alternative with DirectQuery

Hi everybody,

 

I'm facing a problem regarding the IF/SWITCH function because i'm using DirectQuery.

 

I created a measure and tried using IF/SWITCH but it doesn't allow me to do any comparison with my table. Then I thought instead a measure I'll use a column, but since I have to do a calculation with a measure that comes from a different table, it gives me the error: A calculated column or RLS expression on a DirectQuery table cannot reference tables from a different data source.

 

I have no more ideas and I would like to know your thoughts on this.

 

Thanks,

Marta

3 Replies