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
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
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.

Top Solution Authors