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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
Anonymous
Not applicable

Forecasting Future Numbers - table

Circling back on this, I'm trying to put into a table the financial forecast for the next 5 years, based on this year's growth rate. I have precalculated everything and have this DAX:

Measure 2 = IF(HASONEVALUE('Calendar Table' [YEAR DATE]), VALUES(('Calendar Table'[YEAR DATE])) > VALUE(YEAR(TODAY())),  
CALCULATE([Sales], FILTER('Sales Report','Sales Report'[Sale Date]=YEAR(TODAY())))
* POWER((1+[Current Growth%]), 5))
 
This is what I'm getting - T/F instead of the calculation for results: 
2023-08-25_10-44-57.png Do I need a DATEADD in my DAX to get the sales numbers?
2 REPLIES 2
Anonymous
Not applicable

thanks @jgeddes, here is what I put in and here is the error I recieved:

 

Measure 2 = IF(HASONEVALUE('Calendar Table' [YEAR DATE]) && VALUES(('Calendar Table'[YEAR DATE])) > VALUE(YEAR(TODAY())),    
CALCULATE([Sales]FILTER('Sales Report','Sales Report'[Sale Date]=YEAR(TODAY())))
POWER((1+[Current Growth%]), 5))
 

Error: Caclulation error in mesaure 'Extrap Tabl'[Measure 3]: A table of multiple values was supplied where a single value was expected.

jgeddes
Super User
Super User

Can you check the criteria in your measure? It looks like you are evaluting if the table row has one [YEAR DATE] value which is true. Then you are evaluting whether or not the [YEAR DATE] value in the row is greater than the current year. This evaluates as true in all rows shown in your table, which is why you are seeing true returned.
If you change your criteria to 

HASONEVALUE('Calendar Table' [YEAR DATE]&& VALUES(('Calendar Table'[YEAR DATE])) > VALUE(YEAR(TODAY()))

does that get you the result you are looking for?





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

Proud to be a Super User!





Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.