The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
All,
I am using the folowing measure, which works well.
Solved! Go to Solution.
Hello @coatsy35
I suppose that [Last Purchased Year] actually is a full date column and not a year column. So if it's full date you can just write year('Dead Stock'[Last Purchased Year])<=year('Dead Stock'[Last Purchased Year])-4
Hi @coatsy35 ,
Based on your description, I created this data.
You think that Last Purchased Year is just YEAR probably because it is formatted as yyyy, when in fact the essence is still the full date column.
So you can try what Gabry said and it will give you the correct results as well.
Alternatively, you could try creating a separate calculated column for year.
Year =
YEAR('Table'[Last Purchased Year])
Then, use the calculated column to get the desired result.
Measure 3 =
CALCULATE(SUM('Table'[Stk Value]),'Table'[Year] <= MAX('Table'[Year]) - 5)
If your Current Period does not refer to this, please clarify in a follow-up reply.
Best Regards,
Clara Gong
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Yuo are quite right. I wasn't looking correctly at the format. Sorted now with @Gabry answer. Thank you
Hello @coatsy35
I suppose that [Last Purchased Year] actually is a full date column and not a year column. So if it's full date you can just write year('Dead Stock'[Last Purchased Year])<=year('Dead Stock'[Last Purchased Year])-4
So how can it works with -1825? Is it a number? Please provide sample data
User | Count |
---|---|
24 | |
10 | |
8 | |
6 | |
5 |
User | Count |
---|---|
31 | |
12 | |
10 | |
10 | |
9 |