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

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.

Reply
Astolfo
Frequent Visitor

Add a YTD bar to a visual

Hi all,

i was wondering if it's possible to add a YTD bar to a visual that shows the weekly revenue of the last week.

Astolfo_0-1674488354968.png

i have this graph that shows revenue of the week vs revenue of previous week filtered by week and year, my question is if i could add a third bar that shows the revenue of the year until that week selected. Thanks

Regards

 

1 REPLY 1
pratyashasamal
Super User
Super User

Hi @Astolfo ,
Yes you can add YTD bar to this visual .
You can use this calculation for YTD 

For example :- YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(('Date'[Date]),"4/30"))
It would look something like this 

pratyashasamal_0-1674489651870.png

Thanks,
Pratyasha Samal
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.