Showing results for 
Search instead for 
Did you mean: 
RobCini New Member
New Member

Calculate Sales From Delisted SKU's


Hi Community,


I would like to calculate the total sales from SKU's that were delisted this year however were available in the prior year. The measure should sum the numbers only in bold. 


I'm using a tabular model so the "Prior Year Sales" and "Current Year Sales" are both measures. 


SKU Name      Prior Year Sales               Current Year Sales


SKU 1                      10                                          0
SKU 2                      15                                          0

SKU 3                      17                                         20

SKU 4                      12                                         15


Is there a way to achieve this? 

Super User
Super User

Re: Calculate Sales From Delisted SKU's

@RobCini you can use if condition to check  


Delisted SKU Sales = 
VALUES( Table[Sku] ),
IF( [Current Year Sales] == BLANK() || [Current Year Sales] = 0, [Prior Year Sales] 

Did I answer your question? Mark my post as a solution.

Proud to be a Datanaut! Appreciate your Kudos Smiley Happy
Feel free to email me with any of your BI needs.

Helpful resources

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Power BI Helps Homeless and Trouble Youth

Power BI Helps Homeless and Trouble Youth

We spoke with Power BI Super User, Greg Deckler, about his charity work

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Users Online
Currently online: 387 members 3,792 guests
Please welcome our newest community members: