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 All,
I'm trying to create a DAX formula that for each year does a sum of my values from day 1 until day 90 of the same year.
I tried to use the DAX below but it didn't really work, I've got the following error:
a table of multiple values was supplied where a single value was expected
Solved! Go to Solution.
Thanks Greg, I've tweaked a little bit since the Year function wouldn't let me add a column but only another function.
This is what I did and it worked
Perhaps:
Year + 3 Months IT =
VAR __YearStart = DATE(YEAR('Values'[Date]),1,1)
VAR __End = (__YearStart + 89) * 1.
RETURN
SUMX(
FILTER(
'Values',
[Date] >= __YearStart && [Date] <= __End
),
'Values'[Value]
)
Your solution was a great help, really appreciated it!
Thanks Greg, I've tweaked a little bit since the Year function wouldn't let me add a column but only another function.
This is what I did and it worked
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 | |
94 | |
81 | |
66 | |
58 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |