Forum Discussion

atrpbiuser's avatar
atrpbiuser
Frequent Visitor
4 years ago
Solved

Financial Calculations

Hi - Trying to replicate a Tableau report to PBI and need some direction. We have a Sales_Date column inside the main SQL query through which we are trying to pull sales for different periods , how...
  • atrpbiuser's avatar
    atrpbiuser
    4 years ago

    Following worked out. 

    Sales_Full_Month_LY = CALCULATE(SUM(sheet[INVOICE_SALES]),DATESMTD(ENDOFMONTH(DATEADD(Calender_Dates[Inv_Dates],-12,MONTH))))