Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 143529

How to set a where condition between two fields of a same table in AOT query

$
0
0

Hi,

I have an SQL as below, 

select CUS.INVOICE,CUS.AMOUNTCUR from dbo.CUSTTRANS CUS 
	where CUS.AMOUNTCUR > 0 
	  AND CUS.AMOUNTCUR <> CUS.SETTLEAMOUNTCUR

I'm trying to convert this to AOT query and I'm having trouble in setting a where condition between two fields of the same table.

The TSQL for the AOT query is as below,

SELECT AmountCur, Invoice FROM CustTrans(CustTrans_1) 
	WHERE ((AmountCur>0)) 
	AND ((NOT (SettleAmountCur = 0)))
The results between SQL and DAX AOT Query don't match.
The problem here is with CUS.AMOUNTCUR <> CUS.SETTLEAMOUNTCUR.
How can I set this in the AOT query.
Please help.

Thanks,
Praveen.



Viewing all articles
Browse latest Browse all 143529

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>