Forum Discussion
DAX
Hi Maggie, I tried this also, but it doesn't work.
Both
Somme YTD 1 = TOTALYTD(SUM(Sheet1[ETP Mensuel]);Sheet1[Date deb mois].[Date])
Hi Anonymous
I figure out why my solution doesn't fit on your side.
i think date format is mm.dd.yyyy.
But it seems your format should be dd.mm.yy.
Aslo, I test with a dataset including continuous date.
If your format is dd.mm.yy, and your table has discontinuous date, please create a new table
calendar = ADDCOLUMNS(CALENDARAUTO(),"year/month",FORMAT([Date],"yyyymm"))
Connect it to your table (create relationship between two tables)
Then create a measure in your table
Measure = CALCULATE(AVERAGE(Sheet4[ETP]),DATESYTD('calendar'[Date]))
You don't need to use [date].[date] format in your formula.
It may lead some errors.
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous7 years agoNot applicable
Hi Maggie,
sorry to answer late, I was busy with other things and had no time to check this solution.
I checked it just now and it does not work, but I think this is due to my data which is more complex (I gave only an aggregate sample in my post because I can't give the whole).
But I think that you pointed out the right problem which is surely related to date format.
I will try to work this out and I will let you know as soon as possible.
Thank you very much for this hint,
Best regards,
Barbara