Forum Discussion
SAMEPERIODLASTYEAR goes wrong for quarter
- 9 years ago
Hi Onaiggac,
According to your description above, I think the measure AnoPre is correct, and it should work. The problem should be related to your Quarter column.
From the screenshots you posted above, you have a month called "Jan/17" for 2017 Jan, but the quarter "First" for 2017 Q1? Shouldn't it be "First/2017"? So you may need to change the values for Quarter correctly to make it work. :smileyhappy:
Regards
Hi Onaiggac,
According to your description above, I think the measure AnoPre is correct, and it should work. The problem should be related to your Quarter column.
From the screenshots you posted above, you have a month called "Jan/17" for 2017 Jan, but the quarter "First" for 2017 Q1? Shouldn't it be "First/2017"? So you may need to change the values for Quarter correctly to make it work. :smileyhappy:
Regards
- Onaiggac9 years agoAdvocate II
Sure.
Because the actual column and last pariod column has the same name and thats why its summing.
Its working.
Tks.
Now I having a problem to use filter. Its says something like "Exception generated by IDataReader interface."
But I will create another post https://community.powerbi.com/t5/Desktop/SAMEPERIODLASTYEAR-with-filter-return-error-message/td-p/220353