Forum

Adding a calculatio...
 
Notifications
Clear all

Adding a calculation in a visualisation?

4 Posts
2 Users
0 Reactions
91 Views
(@vladimirpinogmail-com)
Posts: 4
Active Member
Topic starter
 

One of my visualisation is a boring P&L in a Table format, so I have the following columns with revenue and cost categories going down: 

                 Actuals / Budget / Forecast / Last Year

Revenue

Expenses

Operating Income

 

Now I would like to add comparison columns that calculates the diffrence in a number and a %, so like this:

                       Actuals / Budget / ACTUALS VS BUDGET/  Forecast / ACTUALS VS FORECAST/  Last Year / ACTUALS VS LAST YEAR

Revenue

Expenses

Operating Income

 

Is it possible to create the calculations in the visualisation? Or do I have to have underlying comparison columns in the data set? 

Kind regards,

Vladimir

 
Posted : 29/09/2017 3:31 am
(@mynda)
Posts: 4761
Member Admin
 

Hi Vladimir,

You need to write measures for these calculations. See the Power Pivot course session 9.02 for the Calculate function.

Note: I recommend you complete the Power Query and Power Pivot courses prior to tackling Power BI as these tools are the foundation of Power BI. If you set up your model wrong you'll have no end of hassles.

Mynda

 
Posted : 29/09/2017 4:54 am
(@vladimirpinogmail-com)
Posts: 4
Active Member
Topic starter
 

Thank you! 

Absolutely love the course! While I work with my file I can always go back to the videos and find a great solution. One of the problems I had was my data labels such as Revenue, Income, COGS etc all where under one column called Reporting Label, but with the following DAX measure you can filter out data and create a measure within a column against different labels such as Operating Margin %. 

SUMX(FILTER(Actual;Actual[REPORTINGLABEL]="Operating Income");Actual[Actuals EUR])/SUMX(FILTER(Actual;Actual[REPORTINGLABEL]=
"Revenue");Actual[Actuals EUR])

Maybe this will help others! 

Kind regards,
Vladi
 
Posted : 03/10/2017 3:05 pm
(@mynda)
Posts: 4761
Member Admin
 

You're welcome, Vladimir. Glad you're enjoying it and thanks for sharing your tip.

Mynda

 
Posted : 03/10/2017 10:25 pm
Share: