Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
KeithSP
Regular Visitor

2 Date Ranges in the Same Visual

I'm pretty new to PBI but have a ton of excel experience. 

I have an annual goal I report on that lists our executive's monthly score for projects.  I would like to show the monthly score and the YTD score via a sparkline.  Each month I receive a report that lists a number of projects, and an exec name is assigned with a score of 1 or 0.  If he has 10 projects but scores 9, he is performing at 90% for that month.  As each month passes that score accumulates to create a YTD value month over month and I'd like to present that in a Sparkline.  When I receive the data I add a new column that is the last day of the month so I have a date reference each time I append the latest report.

1 REPLY 1
amitchandak
Super User
Super User

@KeithSP , if you have date you can use date table and time intelligence, assume you have measure performance 

 

MTD Sales = CALCULATE([performance] ,DATESMTD('Date'[Date]))
last MTD Sales = CALCULATE([performance],DATESMTD(dateadd('Date'[Date],-1,MONTH)))

 

YTD Sales = CALCULATE([performance],DATESYTD('Date'[Date],"12/31"))
Last YTD Sales = CALCULATE([performance],DATESYTD(dateadd('Date'[Date],-1,Year),"12/31"))

 

 

Time Intelligence, DATESMTD, DATESQTD, DATESYTD, Week On Week, Week Till Date, Custom Period on Period,
Custom Period till date: https://youtu.be/aU2aKbnHuWs&t=145s

 

Power BI — Year on Year with or Without Time Intelligence
https://medium.com/@amitchandak.1978/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38a
https://www.youtube.com/watch?v=km41KfM_0uA
Power BI — Qtr on Qtr with or Without Time Intelligence
https://medium.com/@amitchandak.1978/power-bi-qtd-questions-time-intelligence-2-5-d842063da839
https://www.youtube.com/watch?v=8-TlVx7P0A0
Power BI — Month on Month with or Without Time Intelligence
https://medium.com/@amitchandak.1978/power-bi-mtd-questions-time-intelligence-3-5-64b0b4a4090e
https://www.youtube.com/watch?v=6LUBbvcxtKA

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors