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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.