Forum Discussion
Carlo1975
5 years agoHelper I
Work on Date
Hi I have this table: Portfolio Amount Date Pippo 150 01/01/2020 pluto 200 01/02/2021 Paperino 265 01/01/2022 Topolino 5896 01/03/2021 Minnie 1478 01/03/2021 Pape...
amitchandak
5 years agoSuper User
Carlo1975 , Try with help from time intelligence. Choose Current month in slcier or end you calendar there.
Actual = CALCULATE(SUM(Table[Amount]),DATESMTD('Date'[Date]))
Total = CALCULATE(SUM(Table[Amount]),DATESYTD(ENDOFYEAR(dateadd('Date'[Date],-1,Year)),"12/31"))
or
Total = CALCULATE(SUM(Table[Amount]),previousyear('Date'[Date]))
Project = [Total] -[Actual]
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.
Carlo1975
5 years agoHelper I
Is it possible without using slicer?
insert instead DATESMTD something like month(today())....