I am attempting to become more efficient with a process I do monthly by utilizing Power Pivot (which is new to me) verse excel and multiple formulas. All of my data is in one table and I'm attempting to replicate the formulas that have been created for use in excel for use in Power Pivot. However, I've learned that this is not an easy process for a beginning Power Pivot user so I'm turning to some experts for assistance.
My table headers are as follows:
[TABLE="width: 500"]
<tbody>[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[/TR]
[TR]
[TD="align: center"]Service Date[/TD]
[TD="align: center"]ClientName[/TD]
[TD="align: center"]Service Type[/TD]
[TD="align: center"]CPT Code[/TD]
[TD="align: center"]Staff Name[/TD]
[TD="align: center"]Merged Duration[/TD]
[/TR]
</tbody>[/TABLE]
The following formulas are the one's I'm attempting to replicate as a measure in Power Pivot:
ANCIL:
=SUM(IF(((D:D=70000)+(D:D=72000))>0,IF(F:F>30,30,F:F),IF(((D:D=71000)+(D:D=73000))>0,IF(F:F>60,60,F:F),IF((D:D=75000),IF(F:F>15,15,F:F)))),IF((D:D=90899),F:F))
TRAVEL:
=SUM(SUMIF(D:D,{"H0046","46","74000"},F:F))
FA/TP:
=SUM(IF(((D:D="H0032")+(D:D="H0031"))>0,INT(F:F/15)*15))
SKILLS:
=SUM(IF(((D:D="H2017")+(D:D="H2014")+(D:D=90882)+(D:D="S5110"))>0,INT(F:F/15)*15))
THERAPY:
=SUM(IF(((D:D=90832)+(D:D=90834)+(D:D=90837)+(D:D=99349)+(D:D=90847)+(D:D=90846))>0,IF(F:F>=75,75,IF(F:F>=60,F:F,IF(F:F>=53,60,F:F)))))
DA:
=SUM(IF(((D:D=90791)+(D:D=99343)+(D:D=99000))>0,IF(F:F>120,120,F:F)))
SDQ/CASII:
=SUM(SUMIF(C:C,{"SDQ","CASII"},F:F))
Thanks in advance!
- Brandon
My table headers are as follows:
[TABLE="width: 500"]
<tbody>[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[/TR]
[TR]
[TD="align: center"]Service Date[/TD]
[TD="align: center"]ClientName[/TD]
[TD="align: center"]Service Type[/TD]
[TD="align: center"]CPT Code[/TD]
[TD="align: center"]Staff Name[/TD]
[TD="align: center"]Merged Duration[/TD]
[/TR]
</tbody>[/TABLE]
The following formulas are the one's I'm attempting to replicate as a measure in Power Pivot:
ANCIL:
=SUM(IF(((D:D=70000)+(D:D=72000))>0,IF(F:F>30,30,F:F),IF(((D:D=71000)+(D:D=73000))>0,IF(F:F>60,60,F:F),IF((D:D=75000),IF(F:F>15,15,F:F)))),IF((D:D=90899),F:F))
TRAVEL:
=SUM(SUMIF(D:D,{"H0046","46","74000"},F:F))
FA/TP:
=SUM(IF(((D:D="H0032")+(D:D="H0031"))>0,INT(F:F/15)*15))
SKILLS:
=SUM(IF(((D:D="H2017")+(D:D="H2014")+(D:D=90882)+(D:D="S5110"))>0,INT(F:F/15)*15))
THERAPY:
=SUM(IF(((D:D=90832)+(D:D=90834)+(D:D=90837)+(D:D=99349)+(D:D=90847)+(D:D=90846))>0,IF(F:F>=75,75,IF(F:F>=60,F:F,IF(F:F>=53,60,F:F)))))
DA:
=SUM(IF(((D:D=90791)+(D:D=99343)+(D:D=99000))>0,IF(F:F>120,120,F:F)))
SDQ/CASII:
=SUM(SUMIF(C:C,{"SDQ","CASII"},F:F))
Thanks in advance!
- Brandon