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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
plunkett40
New Member

Sum with multiple variables

I need some help being able to SUM this data Account Payable raw data in which has Invoice #, Inv Amount, GL Acct, Line Amount, Reviewer Group and OPS Center.  I always want to see how much cost by AP per each OPS Center.  I have attached a link to the raw date to see how I can do this.  

 

https://1drv.ms/x/c/dde426a4a83b9697/EQm4shm6t1VLth7P1C43fvUBp7YXyeJGUOV02fDTvhd9uA?e=YOPjPz 

 

ScreenshotScreenshot

1 ACCEPTED SOLUTION
BIDataRef
Frequent Visitor

Hi @plunkett40 

 

1. User Matrix visual, then use Pay Type(1st level), Ops Center(2nd level) in the rows, Inv. Date(or which ever date column deem necessary) in the Columns(select appropriate level of hierarchy - Year, Quarter, Month,Date), Inv. Amount as Values ( Aggregation - Sum). This will give you an output looking like the below - 

 

BIDataRef_0-1738198502715.png

2. If you need any specific summarized value, you can use the calculation as mentioned by @hnguy71 .

 

If I have solved your problem, mark my post as solution and give kudos 👍!!

Have a great day!

 

Thanks

 

View solution in original post

2 REPLIES 2
BIDataRef
Frequent Visitor

Hi @plunkett40 

 

1. User Matrix visual, then use Pay Type(1st level), Ops Center(2nd level) in the rows, Inv. Date(or which ever date column deem necessary) in the Columns(select appropriate level of hierarchy - Year, Quarter, Month,Date), Inv. Amount as Values ( Aggregation - Sum). This will give you an output looking like the below - 

 

BIDataRef_0-1738198502715.png

2. If you need any specific summarized value, you can use the calculation as mentioned by @hnguy71 .

 

If I have solved your problem, mark my post as solution and give kudos 👍!!

Have a great day!

 

Thanks

 

hnguy71
Super User
Super User

Hi @plunkett40 ,

It should just be the sum of your invoice or line item amount. If you only wanted to return the Accounts Payable value, your measure should look something similar to this:

AP.Total = CALCULATE(SUM(YOUR_FACT_TABLE[Inv Amount]), YOUR_FACT_TABLE[Pay Type] = "AP Payable")

 

Then you would plug that into a visual along with the "Ops Center" column and you should be able to see the required breakdown.



Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors