Forum Discussion
aamoody81
8 years agoRegular Visitor
SAMEPERIODLASTYEAR for only values in current year
Hi, I'm trying to show the value from prior year for products. I only want the products that are present in the current year to show. What I would like: Product SamePeriodSalesLastYear
...
- 8 years ago
Hi,
Try this
=IF([Sum of ProductSales]=0,BLANK(),CALCULATE([Sum of ProductSales], SAMEPERIODLASTYEAR(D_DATE[DATE])))
Hope this helps.
Greg_Deckler
Community Champion
8 years agoCan't you just wrap that in an IF statement such that "if the sum of the sales in the current year is 0, then blank, otherwise, the calculation you mention"