98.7% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum home » Delegate support and help forum » Microsoft Excel Training and help » Power Query / Pivot
Power Query / Pivot
Resolved · High Priority · Version 365
Paul has attended:
Excel Advanced - Formulas & Functions course
Power Query / Pivot
Hi, Complicated to explain but will try. I have a power query which loads in each month data, and combines the data. I want to see the % of each line entry
I.e. I want to see something like this in a final power pivot outputed from the combined data
ID Number In Out %
10 500 630 126%
20 750 800 107%
30 800 1600 200%
40 50 30 60%
However, I get the totals in and out, but I cannot get the % correct? If I load results into a pivot, it just adds the % from each data source. I guess I need to create a measure or something? Thanks for any help.
EG data for id 10 is as follows...
ID Number In Out %
Jan 200 200 100%
Feb 75 60 80%
Mar 225 370 164%
Final display is....
ID Number In Out %
10 500 630 344%
(Dummy data used)
RE: Power Query / Pivot
Hi Paul,
Thank you for the forum question.
You will need to do a DAX measure in Power Pivot to get what you want.
Try:
Percentage of in out:=Divide(Sum(Out),Sum(In),0)
Add this measure in Power Pivot and format the result as %. If you then add the measure to the Pivot Table, you get what you want.
Kind regards
Jens Bonde
Microsoft Office Specialist Trainer
Tel: 0207 987 3777
STL - https://www.stl-training.co.uk
98%+ recommend us
London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector
Mon 14 Mar 2022: Automatically marked as resolved.
Training information:
See also:
Welcome. Please choose your application (eg. Excel) and then post your question. Our Microsoft Qualified trainers will then respond within 24 hours (working days). Frequently Asked Questions
Any suggestions, questions or comments? Please post in the Improve the forum thread. |
Excel tip:Hiding a worksheet in ExcelWant to circulate an Excel workbook file but keep certain worksheets hidden from your colleagues' view? |