Forum Discussion
Anonymous
4 years agoNot applicable
USERELATIONSHIP with PREVIOUSYEAR returns blanks
I've turned off time intelligence for my report, and am using a Dates Table, and it's marked as a Dates Table. I want the sum of the Billed Amount (basically sales) for the prior year. This is ea...
amitchandak
Super User
4 years agoAnonymous , Try like
CALCULATE(CALCULATE(
sum(BillingHistory[BilledAmount]),
USERELATIONSHIP('Dates table'[Date],BillingHistory[QtrEndDate])),
PREVIOUSYEAR('Dates table'[Date]))
QtrEndDate , should not have a timestamp
slicer, filter, and visual should use the period from Dates table. and it should be marked as date table
Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4