Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello,
I have MTD values, with long switch measures created with lot of comparators in slicers,(eg, vs PY, vs PY-1 etc). I need to now create YTD and total of the YTD because of the data issue.
Any tricks to do with out creating too many formulas connecting all these.
Thanks in advance
@ValtteriN Thanks for the idea, but I need to sum up those YTD numbers again for the total for the heirarchy also we are treating YTD number as MTD number here, this should be only reflecting in only on matrix visual.
Hi,
I recommend creating a calculation groups for basic time intelligence measures. Have a look at this article by SQLBI: Calculation Groups - SQLBI
For your case YTD would be like this:
CALCULATE(SELECTEDMEASURE(), DATESYTD('Calendar'[date]))
I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!
My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/
Proud to be a Super User!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 9 | |
| 9 | |
| 8 | |
| 6 | |
| 6 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 18 | |
| 14 | |
| 14 |