Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
mnb_dk
Helper I
Helper I

Measure sales forecast

Hi

I'm looking for help to solve this calculation.

 

I have two columns of sales: This Year & Last Year.

I want to calculate expected sales if I serve the same customers as last year.

 

Example:

Total sales this year is 240 based on two customers (A + B). We still need to serve the last customer (C). If customer C buys for same amount as Last Year (100) we will expect our total sales to be 120+120+100 = 340

 

CustomerThis yearLast year
A120100
B120100
C 100
Total240

300

 

How does the calculation look like?

 

Best regards

Mathias

2 REPLIES 2
amitchandak
Super User
Super User

@mnb_dk , a new meausre

 

Sumx(Values(Table[Customer]), if(isblank([This Year]), [Last Year], [This Year]))

Hi Amit

Thanks for replying.

Unfortunately this didn't return the correct value.

It retuns the total value from Last Year.

2022-12-07 15_41_37-Collections - Power BI Desktop.png

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.