Forum Discussion

MDR's avatar
MDR
Frequent Visitor
3 years ago

Convert SQL query to a DAX measure, calculate sum for distinct values in another column

What is an equivalent DAX measure for the following SQL query:   select sum(amount) from (select distinct srcid, amount from mytable where datanameshort='name' and status = 'status');