Forum Discussion
rlupe
3 years agoFrequent Visitor
How to get same month last year data to populate when using a second date drilldown?
Hi, I am attempting to build a PBI that looks at ordering data based on the date an order was created, but I want to see the month that it was billed in. My 'This Year' data is correct, but my 'L...
Syk
Resident Rockstar
3 years agoTry to remove filters on your order creation year and see if that helps.. Something like
Bulletin (LY) =
CALCULATE (
[Bulletin (TY)],
DATEADD (
'Date Table'[date],
-1,
YEAR
),
REMOVEFILTERS ( 'Some Table'[Creation Year] )
)
rlupe
3 years agoFrequent Visitor
That is very close! It is technically applying it to the correct month/year, but I am trying to get January 2021 on the same line as January 2022.
I am trying to incorporate sametimeperiod last year to bring it down to the same year. Is there a way to re-add the year after the calculation is already done? I tried doing DATEADD in another measure but it did not hold the values from prev calculation.