This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreGet Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.
Good morning to all of you,
I would like to see a line chart where I can compare the year to date (YTD) vs the previous year to date (PYTD) on my net profit.
The YTD measure looks like this:
But as you propably will have notice, the measure for the actual year does not stop by April, but its calculating the whole year which looks strange.
So what I would like to see is a line chart where the YTD line does end with the relevant month slicer setting, but the PYTD line reflects the whole year. Here my example:
I believe I need to adjust my measures, but I can not find a solution online. Can one of you help?
Your reply is much appreciated and I thank you in advanced.
Brgds
Alaxus
ops sorry it's DATESYTD
Dear JamesFr06,
thanks for your correction.
I played around with your two measure suggestions but they do not match with my idea to stop calculating at the relevant month which is used in the slicer. I will try to explain with the options:
1) Following are the two measures:
as you will see, the line Act YTD does not stop at the month April, but insready also uses the date which is already in the system for May. FYI, the May data is not yet finalized, i.e. for a reader it is misleading since additional bookings could increase or deacrease the net profit as relfected in the line chart.
2)
Result is this:
so the difference is:
1) it does not add the monthly result with the next month but instead reflects each individual month result.
2) it does calculate and adds the monthly result with the previous month result.
If I try to use.. = calculate(sum( ... it does not work at all.
for sake of good order here is the Visualization setting:
Do you have another solution? If not somebody else?
In any case, many thanks for your help so far 🙂
Brgds
Alaxus
Hi Alaxus,
Try these measures :
Thank you James Fr06,
unfortunately I get the following advise:
and also DATEYTS can not be found.
FYI, [#Ttl Act USD] is a measure. Is that from importance?
Many thanks in advanced.
Brgds
Kai
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 23 | |
| 21 | |
| 20 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 58 | |
| 55 | |
| 42 | |
| 26 | |
| 24 |