cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Helper I

## YTD Current Year and YTD previous Year

----Fincial Year strats from July 1st

Books Received for Current Year YTD =

Books Received previous Year YTD =

DATESYTD(SAMEPERIODLASTYEAR('Date'[Date])),
MONTH('Date'[Date]) < MONTH(TODAY()) || (MONTH('Date'[Date]) = MONTH(TODAY()) && DAY('Date'[Date]) <= DAY(TODAY())))

1. The Differnece is not working Properly, Some months shows correct value some months not
2. I need to place (Difference value) (Current YTD -Preyr YTD) in Card visual in that Dashboard Page I should not show Date slicers,

1 ACCEPTED SOLUTION
Community Champion

Books Received for Previous Year YTD =
CALCULATE(
DATEADD( DATESYTD( 'Date'[Date], "30/06" ), -1, YEAR )
)

 Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! DAX is simple, but NOT EASY!
Community Champion

Books Received for Previous Year YTD =
CALCULATE(
DATEADD( DATESYTD( 'Date'[Date], "30/06" ), -1, YEAR )
)

 Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! DAX is simple, but NOT EASY!

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

#### Power BI Monthly Update - August 2024

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

#### Fabric Community Update - August 2024

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

Top Solution Authors
Top Kudoed Authors