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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.