Forum Discussion
DIRECT QUERY equivalent to SAMEPERIODLASTYEAR
- 7 years ago
Thank you for the suggestion, I actually had enabled it already.
I resorted to using a more complex DAX formula because I was trying to find a workaround for the "Power bi expects a contiguous selection" issue.
However, it seems that, if I change the relationshipt between the Date dimention table and Sales from direction from "Both" to "Single" it works.
Best regards
Hi Datahungry,
You could enable the highlighted option to use SAMEPERIODLASTYEAR() in Direct Query mode.
Best regards,
Yuliana Gu
Thank you for the suggestion, I actually had enabled it already.
I resorted to using a more complex DAX formula because I was trying to find a workaround for the "Power bi expects a contiguous selection" issue.
However, it seems that, if I change the relationshipt between the Date dimention table and Sales from direction from "Both" to "Single" it works.
Best regards