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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Future Revenue and Expense Projections DAX Formula Help

Hello,

 

I am trying to add a future projections column next to my Actuals.  What I want to capture are just to do projections for the months that have $0 or less for and if they have any amounts higher than 0 the forecast for that given month would be blank.  For example on my table right now since November and December are $0 the column with projections would have projected amounts for November and December but for Jan - Oct. the projections would be blank.  

 

The projection method I would like to do is take the average change from 2021 actuals vs. 2020 Actuals and multiply that number for the months with 0 or less rev/exp.

 

An example if it were excel all would be using various If statements but I cannot for the life of me figure out Dax i attached a picture of what I need:

JMcAnarney_0-1635104541312.png

The kicker is that I have no idea how once we get July in there the new average is automatically calcualted using 7 months as opposed to 6.

 

My two data sources are basic as it is just 2021 Actuals and 2020 Actuals.


Thanks in advance and any clarification Id be happy to do.

 

3 REPLIES 3
Jihwan_Kim
Super User
Super User

Hi,

Please check the below picture and the attached pbix file.

All measures are in the attached pbix file.

 

Picture1.png

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.
Anonymous
Not applicable

You are the GOAT thank you!  One more quesion how do uou get the projection measure to sum at very end?  

Hi,

Thank you for your feedback.

Please try to change the last measure like below.

 

Picture1.png

 

Projection measure : =
VAR monthlychangeavg =
CALCULATE ( [Percent Change avg. :], REMOVEFILTERS ( 'Month' ) )
RETURN
SUMX (
VALUES ( 'Month'[Month] ),
CALCULATE ( IF ( [Sales 2021 :] = 0, [Sales 2020 :] * monthlychangeavg ) )
)

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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