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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Waterfall chart YOY YTD

Hi,

 

I created a waterfall chart associated with a period slicer.

waterfall chart.pngI want to compare data YTD for 2018 and YTD for 2019. As you can see it takes full year turnover for 2018.

How can I compare YTD 2018 and YTD 2019 with a DAX measure?

Here : from 2018-01-01 to 2018-01-03 and 2019-01-01 to 2019-01-03

Thanks

 

 

3 REPLIES 3
Anonymous
Not applicable

[Base Measure YTD LY] = // year-to-date last year
	CALCULATE(
		[Base Measure],
		SAMEPERIODLASTYEAR(
			DATESYTD( Calendar[Date] )
		)
	)

 

Best

D

Anonymous
Not applicable

Hello,

 

Thank you for your answer, but this measure only gives last year's turnover.

I would like to select a period, and if the period is between 2018-01-02 and 2019-01-05 the cascade will display :

- in the 2018 bar -> sum of turnover between 2018-01-02 and 2018-01-05

- in the 2019 bar -> sum of turnover between 2019-01-02 and 2019-01-05

If too complicated only YTD turnover for 2018 until 2018-01-05 and YTD for 2019 until 2019-01-05.

How can I get this result?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.