Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago

Convert QlikView to DAX formula

Hi, Can anyone please help me below Qlikview formulas to convert into DAX.

1. AccountName

=if(AsOfDate<'$(vPerfStartDate)',' ',
if(AsOfDate>='$(vPerfStartDate)' AND AsOfDate<='$(vPerfEndDate)' and GL_SubType_Description <>'Cash',
if(not isnull(stg_row_id)
,stg_row_id
,TransactionBK)
)
)

2. Date: if(Dimensionality()=1,'Total' &' '&AccountName,if(RowNo()=1,AccountName,
Date(AsOfDate,'MM-DD-YYYY')))

3.Payment Method: =if(Transaction_Method='Office Check (with Signature)' or Transaction_Method='Office Check (without Signature)' ,'Check' &' #'& MaxString(Check_Wire)
,if(Receipt_Type='Non-Ayco Initiated','Non-Bill Pay Initiated',if(Receipt_Type='GTM Payroll','GTM Payroll',Transaction_Method)))

 

4.Category : If(rowno()=0 or AsOfDate<vPerfStartDate,'',if(isnull(TransactionBK),'Multiple',MaxString(GL_SubType_Description &' - '&[GL_Account_Description]))
)

5.Amount : (Sum({<AsOfDate={'<=$(vPerfEndDate)>=$(vPerfStartDate)'},GL_SubType_Description-={'Cash'},CashRelated={1}> }Amount)
)*-1

1 Reply