Forum Discussion

RMD's avatar
RMD
Frequent Visitor
6 years ago

SQL to Dax (convert)

Hello Experts,

 

I have a sql command but I need to have dax formula. The problem i don't know how to convert this formula in a Dax formula.

 

                    sum(case when tr1.SDATEOCCURRED <= tr.sdateoccurred

                             then isnull(dt.samount, 0)

                                  + isnull(dt_vat.samount, 0)

                        end) on_time_amount

 

I have the following tables in Powerbi: TRANS, TRANS (1) and Detail

In the sql report I have the folloing tables: tr1 = Trans (1), Tr = Trans and dt=Detail.

 

many thanks in advance for your help!!!

 

2 Replies