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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Anonymous
Not applicable

Sum of Multiple columns and then %

Trying to add multiple rows and then divide against other multiple rows to get %.  I have zero issues creating this formula in Excel Power Pivot but for some reason, this is thowing errors at me.


Essentially, the sum of all the Red Columns / sum of the green columns.   

brianbookmiller_0-1632920648128.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Figured it out.............For some reason, the custom columns defaulted the format to TEXT instead of Number and was summarizing.....😥

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Figured it out.............For some reason, the custom columns defaulted the format to TEXT instead of Number and was summarizing.....😥

sidneyjacobs
Frequent Visitor

You don't have to do the transformations in Excel. Everything i wrote above can be done in PowerBI.

 

I will try to explain the steps more clear. If you have your data from Excel loaded into PowerBI go to "home" in the top left corner. Choose "Transform data". This will open a new window. In this new window select your table on the left side and go to the tab called "Add column" in the top left. Choose the option "Custom Column".

Once you have done all that, you should see a window like this:

sidneyjacobs_0-1632926350572.png

Here you can click on the columns you want on the right side, and add them up. Once you have done so for Total Created and Total Resolved you have to make one more conditional column like so:

sidneyjacobs_1-1632926450609.png

This gives you the percentage of Created/Resolved per row.

 



ryan_mayu
Super User
Super User

@Anonymous 

What's solution you are using? What's the error you are encountering?

Do you want to create the % for each row or create a measure to calculate?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




sidneyjacobs
Frequent Visitor

Hey Brian,

 

If you go to transform data

sidneyjacobs_0-1632923663310.png

and then pick your table, you can add a new column by going to 'Add column' and choosing 'Custom column'

sidneyjacobs_1-1632923750779.png

you can then simply make 1 column, say Green: being [chat created]+[phone created]+...
Then you can make a second column, say Red: adding the red columns together.

finally make a third column that says Green/Red

 

Hopefully that gives the solution you were looking for.

 

 

Anonymous
Not applicable

So , the data source is an excel sheet and I tried that in the excel sheetdirectly once and just now via the method you just showed me....This is what happens...

The individual day values will display correctly in the view...but when they are added by date, its all jacked up

brianbookmiller_0-1632925511122.png

and then when I create a simple formula dividing them, the results is always 1.00 as a %.

brianbookmiller_1-1632925627161.png
brianbookmiller_2-1632925697821.png

 





Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

August Carousel

Fabric Community Update - August 2024

Find out what's new and trending in the Fabric Community.