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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
mformagnificent
Regular Visitor

Please help: SUMX function not working. Is there another function I should be using?

My SUMX formula is not working

 

I want the Runout measure to subtract the Inventory column and the daily usage column. How can I do that? I tried using SUMX function but it's giving me amounts that is not the correct subtraction result. 

 

Runout = SUMX(RunOutTable, RunOutTable[Inventory] - [Daily Usg])
 
Daily Usage = [QtyTotal]/([DateDuration] * (5/7)) - This is a measure not a column.

Column "Inventory" is TotalPhysicalInvent - Delivery Remainder.

 

mformagnificent_2-1724220598382.png

 

 

1 ACCEPTED SOLUTION
bhanu_gautam
Super User
Super User

@mformagnificent , You are getting this error because daily usage is measure , either convert in calculated column

 

or use below

Runout = SUMX(
    RunOutTable,
    RunOutTable[Inventory] - [Daily Usage]
)



Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @mformagnificent ,

 

Please try this measure:

Runout = SUM ( RunOutTable[Inventory] ) - [Daily Usg]

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

bhanu_gautam
Super User
Super User

@mformagnificent , You are getting this error because daily usage is measure , either convert in calculated column

 

or use below

Runout = SUMX(
    RunOutTable,
    RunOutTable[Inventory] - [Daily Usage]
)



Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






bhanu_gautam
Super User
Super User

@mformagnificent , Try using below measure

 

Runout = SUMX(
    RunOutTable,
    RunOutTable[Inventory] - CALCULATE([Daily Usage], RunOutTable)
)



Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Daily usage is a measure not a column. When I inserted your formula I get this message. Is there another method we can try? Also, thank you for responding. 

 

mformagnificent_1-1724222460072.png

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.