Forum

Notifications
Clear all

How can calculate % from column total not grand total

4 Posts
2 Users
0 Reactions
95 Views
(@alinam)
Posts: 4
Active Member
Topic starter
 

Hi,

I have a big data base, and I need to calculate % from column total (as we can do in power pivot) not from grand total, I don't know how can I combine data in a formula to obtain this.

Shortly, we have:

* price cluster: A1, A2, B1, B2, C1....

* Price store Type: CONTROL and PILOT

* no of stores for every Price store Type

* sales Gross Amt

I have attached an example file to see how I want the graph to look
 

 A1:
% for control (from A1)= control(from A1) / (control(from A1) + pilot(from A1))
% for pilot (from A1)= pilot (from A1) / (control (from A1) + pilot (from A1) )

Please help me with a formula

 

Thanks a lot

 

Alina

 
Posted : 08/10/2019 3:30 am
(@mynda)
Posts: 4761
Member Admin
 

Hi Alina,

Welcome to our forum.

If you know how to do it in Power Pivot then it's the same in Power BI because Power BI uses Power Pivot for the modelling and measures.

That said, you don't need to write a measure. You can do this with Show Values As in a matrix table in Power BI, then set the Values to Show Values as Percentage of Row total.

See attached example using a PivotTable in your Excel file.

Mynda

 
Posted : 08/10/2019 6:29 am
(@alinam)
Posts: 4
Active Member
Topic starter
 

explain-photo-for-Mynda.PNG folruma-pt-procent-din-price-cluster.PNGgraficul-pentru-share-din-price-cluster.PNGnu-am-la-show-value-as-proc-of-parent-total.png

 

Hi Mynda,

thanks for the answer, but I realized that I did not express myself well 🙂
 
I just started learning from one PBI, I am new and it is harder for me now to understand the logic and combinations in PBI.

I attach a picture that better expresses what I need to see in the PBI
It's my mistake that I wrote Total Column when I was actually thinking of % of Parent Total

in the second picture I show you that I do not have the option of % Row Total, % Column Total, % of Parent Total at show value as

So you are kind and help me to find out how I can calculate% of Total Parent in PBI as I did in Pivot Table, because I don't know

 
Posted : 09/10/2019 3:56 am
(@mynda)
Posts: 4761
Member Admin
 

Hi Alina,

Thanks for clarifying. Please see pbix file attached. You'll see it returns the same chart as you gave in your Excel file originally.

Mynda

 
Posted : 09/10/2019 7:12 am
Share: