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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.