Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
Does anyone know or can help in calculating ytg with the DAX formula?
I try this:
Amount YTG :=
Var DaySelected = MAXX(DATEADD('Calendar'[Date],YEAR),'Calendar'[Date])
Var Year=DATE(MAX('Calendar'[Year]),
Var FilterDates=DATESBETWEEN('Calendar'[Date],DaySelected,Year)
Var Result = CALCULATE([Amount Total], FilterDates)
Best regards.
Solved! Go to Solution.
Year To Go = VAR __today = TODAY() VAR __maxDate = DATE(YEAR(__today),12,31) RETURN CALCULATE(SUM([Column 2]),FILTER('Calendar',[Date]>__today && [Date]<=__maxDate))
Year To Go = VAR __today = TODAY() VAR __maxDate = DATE(YEAR(__today),12,31) RETURN CALCULATE(SUM([Column 2]),FILTER('Calendar',[Date]>__today && [Date]<=__maxDate))
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
107 | |
88 | |
76 | |
67 |
User | Count |
---|---|
126 | |
111 | |
100 | |
83 | |
71 |