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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
sjoulaei
Frequent Visitor

total value for a calculated measure column is not correct

 Hi all,

sorry if this is a repeated question. I went through few other threads that looked similar, but still haven't been able to work it out. I am new to Power BI and still getting my head around the wonderful tool. Any help appreciated.

 

What I want to achieve

Prepare a financial forecasting tool that will update the future outlook based on altering the assumptions about varioud things (screenshot attached).

 

What I have done

I created a single table that includes the Years that I want to include in the report.

Added bunch of What-if parameters that will be used to play with the forecasts

Then everything else is measure calculated with PRODUCTX() on that table.

 

For example, Annual Revenue formula is as below:

Year Revenue = PRODUCTX(
                       'Finance Forecast',
'Base Revenue'[Base Revenue Value] * POWER(1+[Expected Growth Rate Value], 'Finance Forecast'[Year Index]-1) )

Financial Forecast table is as below:

 

Annotation 2019-06-18 113251.png

 

 

 

 

 

 

 

Questions:

  • Is this the best way to achieve what I want to get?
  • How to fix the totals column? 

 

 

Annotation 2019-06-18 111955.png

 

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

Does this work?

=IF(HASONEVALUE([Year]),[Year Revenue],SUMX(SUMMARIZE(VALUES([Year]),[Year],"Rev",[Year Revenue]),[Rev]))


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

Does this work?

=IF(HASONEVALUE([Year]),[Year Revenue],SUMX(SUMMARIZE(VALUES([Year]),[Year],"Rev",[Year Revenue]),[Rev]))


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thanks for quick respond @Ashish_Mathur 

That did the trick 🙂

 

I combined the two in one measure as below:

Year Revenue = IF(HASONEVALUE(Years[Year]),
                    PRODUCTX(
                            'Years',
                            'Base Revenue'[Base Revenue Value] * POWER(1+[Expected Growth Rate Value], 'Years'[Year Index]-1)
                            ),
                    SUMX(SUMMARIZE(VALUES(Years[Year]),
                                   Years[Year],
                                   "Rev",
                                    PRODUCTX(
                                            'Years',
                                            'Base Revenue'[Base Revenue Value] * POWER(1+[Expected Growth Rate Value], 'Years'[Year Index]-1)
                                            )
                                    ),
                        [Rev])
                    )

 

 

and now trying to digest what just happened haha

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors