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 have a question that is stumping me and I cannot figure it out. I suspect it is something simple but here we go anyway.
I have a table which has a date column, there are dates in the future in this table. I also have a calendar table and the relationships are setup.
In a measure I am using Calculate with Datesytd.
Expected_YTD = CALCULATE(sum(MadeUpTableName[Col1]), DATESYTD('Calendar'[Date]))
There is a slicer on the visual page allowing the user to select the year. There is no month slicer.
However, this measure always shows the full year sums, rather than just up to today. I suspect this is there is nothing telling it to use today as the 'end' date.
Any ideas?
Solved! Go to Solution.
hey,
thats right you need to make it change to check until today, try something like this:
Measure = CALCULATE(SUM(Table1[value]),YEAR(Table1[date]) = YEAR(TODAY()), MONTH(Table1[date]) <= MONTH(TODAY()) )
Proud to be a Super User!
hey,
thats right you need to make it change to check until today, try something like this:
Measure = CALCULATE(SUM(Table1[value]),YEAR(Table1[date]) = YEAR(TODAY()), MONTH(Table1[date]) <= MONTH(TODAY()) )
Proud to be a Super User!
You are a super star, thank you so much 🙂
I wasted so much of my afternoon scratching my head at this lol... oh well, its all a learning experiance I guess 😄
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 |
---|---|
114 | |
99 | |
83 | |
70 | |
60 |
User | Count |
---|---|
150 | |
115 | |
104 | |
89 | |
65 |