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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

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.

Top Solution Authors