DAX- Power Pivot - How to show the % difference between values in a PVT

TheHack22

Board Regular
Joined
Feb 3, 2021
Messages
121
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
Hello my MS Excel expert friends,

I have been trying to create Pivot Tables from a dataset and to show the percentage difference in rates charged, between the company and its competition.
I have added the data to the data model and used a few simple Dax Functions - Percentiles (See Mini worksheet).

Is there a way to show the rates difference using DAX (In %) between "Acme Corporation" Versus "All other Companies" for each column?
Please see the manual method I would use to get this, in yellow.

Pivot Table:

Clients Analysis 11.19.2022 Pivot Tables.xlsx
ABCDEFGHIJ
522%
6TitleAssociate=(28187-23175)/23175
7
8YearGraded TitleGroupingsCount of TitleMin of Service RateAverage of Service RateMax of Service Rate25TH Percentile50TH Percentile75TH Percentile
92022Junior AssociateAcme Corporation5$28,187$39,325$54,040$29,526$41,106$43,765
10All Other Companies31$23,175$42,445$59,175$35,775$42,075$53,550
11Junior Associate Total36$23,175$42,012$59,175$35,325$42,075$53,550
12Midlevel AssociateAcme Corporation9$30,131$47,048$56,427$44,699$47,447$55,502
13All Other Companies1$38,700$38,700$38,700$38,700$38,700$38,700
14Midlevel Associate Total10$30,131$46,213$56,427$40,704$46,104$53,864
15Senior AssociateAcme Corporation14$27,591$43,255$54,993$37,284$41,383$50,602
16All Other Companies18$41,625$55,463$79,875$42,075$53,550$62,550
17Senior Associate Total32$27,591$50,122$79,875$41,622$48,163$55,476
182022 Total78$23,175$45,878$79,875$38,793$42,075$53,550
Pivot Table
Cell Formulas
RangeFormula
E5E5=(28187-23175)/23175



Dataset:
Clients Analysis 11.19.2022 Pivot Tables.xlsx
ABCDEFG
1Service RateGraded TitleTitleTypeFirmYearGroupings
2$33,975Junior AssociateAssociateClients AAce Store2022All Other Companies
3$27,225Junior AssociateAssociateClients AAce Store2022All Other Companies
4$31,950Junior AssociateAssociateClients AAce Store2022All Other Companies
5$31,950Junior AssociateAssociateClients AAce Store2022All Other Companies
6$30,150Junior AssociateAssociateClients AAce Store2022All Other Companies
7$27,225Junior AssociateAssociateClients AAce Store2022All Other Companies
8$38,700Midlevel AssociateAssociateClients AAce Store2022All Other Companies
9$34,875AccountantAccountantClients BAce Store2022All Other Companies
10$39,600AccountantAccountantClients BAce Store2022All Other Companies
11$41,625Marketing DirectorMarketing DirectorClients BAce Store2022All Other Companies
12$41,625Marketing DirectorMarketing DirectorClients BAce Store2022All Other Companies
13$59,175Marketing DirectorMarketing DirectorClients BAce Store2022All Other Companies
14$51,075Marketing DirectorMarketing DirectorClients BAce Store2022All Other Companies
15$43,425Marketing DirectorMarketing DirectorClients BAce Store2022All Other Companies
16$41,625Marketing DirectorMarketing DirectorClients BAce Store2022All Other Companies
17$50,850Marketing DirectorMarketing DirectorClients BAce Store2022All Other Companies
18$42,300Marketing DirectorMarketing DirectorClients BAce Store2022All Other Companies
19$41,625Marketing DirectorMarketing DirectorClients BAce Store2022All Other Companies
20$49,725Marketing DirectorMarketing DirectorClients AAcme Corporation 2022Acme Corporation
21$37,800Marketing DirectorMarketing DirectorClients AAcme Corporation 2022Acme Corporation
22$47,025Marketing DirectorMarketing DirectorClients AAcme Corporation 2022Acme Corporation
23$48,825Marketing DirectorMarketing DirectorClients AAcme Corporation 2022Acme Corporation
24$37,800Marketing DirectorMarketing DirectorClients AAcme Corporation 2022Acme Corporation
25$58,500Marketing DirectorMarketing DirectorClients AAcme Corporation 2022Acme Corporation
26$58,500Marketing DirectorMarketing DirectorClients AAcme Corporation 2022Acme Corporation
27$45,225Marketing DirectorMarketing DirectorClients AAcme Corporation 2022Acme Corporation
28$49,275Marketing DirectorMarketing DirectorClients AAcme Corporation 2022Acme Corporation
29$55,125Marketing DirectorMarketing DirectorClients AAcme Corporation 2022Acme Corporation
30$37,800Marketing DirectorMarketing DirectorClients AAcme Corporation 2022Acme Corporation
31$53,775Marketing DirectorMarketing DirectorClients AAcme Corporation 2022Acme Corporation
32$45,225Marketing DirectorMarketing DirectorClients AAcme Corporation 2022Acme Corporation
33$43,425Marketing DirectorMarketing DirectorClients AAcme Corporation 2022Acme Corporation
34$51,075Marketing DirectorMarketing DirectorClients AAcme Corporation 2022Acme Corporation
35$51,075Marketing DirectorMarketing DirectorClients BAcme Corporation 2022Acme Corporation
36$59,850Marketing DirectorMarketing DirectorClients BAcme Corporation 2022Acme Corporation
37$55,125Marketing DirectorMarketing DirectorClients BAcme Corporation 2022Acme Corporation
38$18,900Cost AccountantCost AccountantClients BAcme Corporation 2022Acme Corporation
39$18,900Cost AccountantCost AccountantClients BAcme Corporation 2022Acme Corporation
40$21,375Cost AccountantCost AccountantClients BAcme Corporation 2022Acme Corporation
41$15,975Cost AccountantCost AccountantClients BAcme Corporation 2022Acme Corporation
42$11,925Cost AccountantCost AccountantClients BAcme Corporation 2022Acme Corporation
43$63,000Midlevel DirectorDirectorClients BAcme Corporation 2022Acme Corporation
44$63,000Midlevel DirectorDirectorClients BAcme Corporation 2022Acme Corporation
45$61,425Senior DirectorDirectorClients BAcme Corporation 2022Acme Corporation
46$41,106Junior AssociateAssociateClients AAcme Corporation 2022Acme Corporation
47$28,187Junior AssociateAssociateClients AAcme Corporation 2022Acme Corporation
48$43,765Junior AssociateAssociateClients AAcme Corporation 2022Acme Corporation
49$54,040Junior AssociateAssociateClients AAcme Corporation 2022Acme Corporation
50$29,526Junior AssociateAssociateClients AAcme Corporation 2022Acme Corporation
51$29,426Junior DirectorDirectorClients AAcme Corporation 2022Acme Corporation
52$31,660Junior DirectorDirectorClients AAcme Corporation 2022Acme Corporation
53$30,905Junior DirectorDirectorClients AAcme Corporation 2022Acme Corporation
54$57,028Junior DirectorDirectorClients AAcme Corporation 2022Acme Corporation
55$32,943Junior DirectorDirectorClients BAcme Corporation 2022Acme Corporation
56$30,843Junior DirectorDirectorClients BAcme Corporation 2022Acme Corporation
57$50,634Junior DirectorDirectorClients BAcme Corporation 2022Acme Corporation
58$39,372Midlevel AssociateAssociateClients BAcme Corporation 2022Acme Corporation
59$30,131Midlevel AssociateAssociateClients BAcme Corporation 2022Acme Corporation
60$44,699Midlevel AssociateAssociateClients BAcme Corporation 2022Acme Corporation
61$55,502Midlevel AssociateAssociateClients BAcme Corporation 2022Acme Corporation
62$44,760Midlevel AssociateAssociateClients BAcme Corporation 2022Acme Corporation
63$47,447Midlevel AssociateAssociateClients BAcme Corporation 2022Acme Corporation
64$56,144Midlevel AssociateAssociateClients AAcme Corporation 2022Acme Corporation
65$48,949Midlevel AssociateAssociateClients AAcme Corporation 2022Acme Corporation
66$56,427Midlevel AssociateAssociateClients AAcme Corporation 2022Acme Corporation
67$35,646Senior AssociateAssociateClients AAcme Corporation 2022Acme Corporation
68$39,071Senior AssociateAssociateClients AAcme Corporation 2022Acme Corporation
69$41,152Senior AssociateAssociateClients AAcme Corporation 2022Acme Corporation
70$27,591Senior AssociateAssociateClients AAcme Corporation 2022Acme Corporation
71$41,614Senior AssociateAssociateClients AAcme Corporation 2022Acme Corporation
72$39,776Senior AssociateAssociateClients AAcme Corporation 2022Acme Corporation
73$36,688Senior AssociateAssociateClients BAcme Corporation 2022Acme Corporation
74$34,646Senior AssociateAssociateClients BAcme Corporation 2022Acme Corporation
75$53,937Senior AssociateAssociateClients BAcme Corporation 2022Acme Corporation
76$47,187Senior AssociateAssociateClients BAcme Corporation 2022Acme Corporation
77$49,139Senior AssociateAssociateClients BAcme Corporation 2022Acme Corporation
78$51,090Senior AssociateAssociateClients BAcme Corporation 2022Acme Corporation
79$53,042Senior AssociateAssociateClients BAcme Corporation 2022Acme Corporation
80$54,993Senior AssociateAssociateClients BAcme Corporation 2022Acme Corporation
81$79,875Senior DirectorDirectorClients BCupcake LLC2022All Other Companies
82$63,000Senior DirectorDirectorClients ACupcake LLC2022All Other Companies
83$70,425Senior DirectorDirectorClients ACupcake LLC2022All Other Companies
84$56,925Senior DirectorDirectorClients ACupcake LLC2022All Other Companies
85$79,875Senior DirectorDirectorClients ACupcake LLC2022All Other Companies
86$79,875Senior DirectorDirectorClients ACupcake LLC2022All Other Companies
87$79,875Senior DirectorDirectorClients ACupcake LLC2022All Other Companies
88$68,625Senior DirectorDirectorClients ACupcake LLC2022All Other Companies
89$63,675Senior DirectorDirectorClients ACupcake LLC2022All Other Companies
90$79,875Senior DirectorDirectorClients ACupcake LLC2022All Other Companies
91$65,250Senior DirectorDirectorClients BCupcake LLC2022All Other Companies
92$79,875Senior DirectorDirectorClients BCupcake LLC2022All Other Companies
93$53,550Junior AssociateAssociateClients BCupcake LLC2022All Other Companies
94$53,550Junior AssociateAssociateClients BCupcake LLC2022All Other Companies
95$53,550Junior AssociateAssociateClients BCupcake LLC2022All Other Companies
96$42,075Junior AssociateAssociateClients BCupcake LLC2022All Other Companies
97$42,075Junior AssociateAssociateClients BCupcake LLC2022All Other Companies
98$53,550Junior AssociateAssociateClients BCupcake LLC2022All Other Companies
99$42,075Junior AssociateAssociateClients BCupcake LLC2022All Other Companies
100$53,550Junior AssociateAssociateClients BCupcake LLC2022All Other Companies
101$53,550Junior AssociateAssociateClients AÉclair Inc2022All Other Companies
102$53,550Junior AssociateAssociateClients AÉclair Inc2022All Other Companies
103$53,550Junior AssociateAssociateClients AÉclair Inc2022All Other Companies
104$42,075Junior AssociateAssociateClients AÉclair Inc2022All Other Companies
105$35,775Junior AssociateAssociateClients AÉclair Inc2022All Other Companies
106$42,075Junior AssociateAssociateClients AÉclair Inc2022All Other Companies
107$53,550Junior AssociateAssociateClients AÉclair Inc2022All Other Companies
108$42,075Junior AssociateAssociateClients AÉclair Inc2022All Other Companies
109$42,075Junior AssociateAssociateClients AÉclair Inc2022All Other Companies
110$35,775Junior AssociateAssociateClients AÉclair Inc2022All Other Companies
111$35,775Junior AssociateAssociateClients AÉclair Inc2022All Other Companies
112$53,550Junior AssociateAssociateClients AÉclair Inc2022All Other Companies
113$53,550Junior AssociateAssociateClients AÉclair Inc2022All Other Companies
114$42,075Junior AssociateAssociateClients AÉclair Inc2022All Other Companies
115$42,075Junior AssociateAssociateClients AÉclair Inc2022All Other Companies
116$57,600Junior AssociateAssociateClients BÉclair Inc2022All Other Companies
117$42,075Junior AssociateAssociateClients BÉclair Inc2022All Other Companies
118$53,550Junior AssociateAssociateClients BÉclair Inc2022All Other Companies
119$23,175Junior AssociateAssociateClients BÉclair Inc2022All Other Companies
120$35,775Junior AssociateAssociateClients BÉclair Inc2022All Other Companies
121$59,175Junior AssociateAssociateClients BÉclair Inc2022All Other Companies
122$42,075Junior AssociateAssociateClients BÉclair Inc2022All Other Companies
123$35,775Junior AssociateAssociateClients BÉclair Inc2022All Other Companies
Data
Cell Formulas
RangeFormula
G2:G123G2=IF([@Firm]="Acme Corporation ","Acme Corporation ","All Other Companies")





1668874485480.png
 
Last edited:

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top