Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I am having issues trying to do a comparison of FY2023 YTD and FY 2024 YTD in the same Matrix. For example, I want to be able to pull in the YTD units for January and February from 2023 in a comparison to current year YTD information... I was able to do a month to month comparison by creating a new measure:
@gmat , Try two measures like
YTD =
var _max = if(isfiltered('Date'),MAX( 'Date'[Date]) , today())
var _min = eomonth(_max,-1*MONTH(_max))+1
return
CALCULATE([net] ,DATESBETWEEN('Date'[Date],_min,_max))
LYTD =
var _max1 = if(isfiltered('Date'),MAX( 'Date'[Date]) , today())
var _max = Date(Year(_max1)-1, Month(_max1), Day(_max1))
var _min = eomonth(_max,-1*MONTH(_max))+1
return
CALCULATE([net] ,DATESBETWEEN('Date'[Date],_min,_max))
This was very helpful however having two measure messes with my matrix. Am I able to keep everything uniform and get rid of the double column sub headers like shown on the left?