Forum Discussion
bedata1
3 years agoFrequent Visitor
Multiple Time Variables with If Return
Hi Community, I want to create a DAX formula that shows the following: If Date <= Today, then show the "amount" from the "G/L Entry" table and if Date > Today, then show the "amount" from the "B...
- 3 years ago
hi bedata1
try like:
IS LE =var TodayDate = TODAY()var ActualAmount =CALCULATE(SUM('G/L Entry'[amount]), FILTER('Date','Date'[Date] <= TODAY()))var BudgetAmount =CALCULATE(SUM(Budget[Amount]),FILTER('Date','Date'[Date] > TODAY()))returnIF(MAX(Budget[Date]) > TodayDate,BudgetAmount,ActualAmount)