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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

SumX on the table

I'm trying to do something I thought would be simple, but it's not working.

I have a column involving defective products that need to be returned. The column is "Number of line items to return", depending on the item.

I can get the Number of line items to return column to display the correct value ONLY by selecting "do not summarize" in the field settings.... otherwise, it displays the incorrect values (4 in this case).

I thought that by using a SUMX function, I could get the correct row level amount..... but it also says 4... when I should say 1.

My goal, besides having the right amount at row level, is also to have a total at the bottom... that is not currently happening in the column that shows the correct quantity value. So my goal, again, would be to have a column that shows the correct row level value, and also a correct total at the bottom.

SumX Qty to Return - SUMX ( Merge1, CALCULATE ( SUM ( Merge1[RMA Item Item Qty To Return])))

sumx .png

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous ,The information you have provided is not making the problem clear to me. Can you please explain with an example.

To me, it seems you are creating a column not measure like

SumX Qty to Return = SUMX ( Merge1, Merge1[RMA Item Item Qty To Return])

SumX Qty to Return = CALCULATE ( SUM ( Merge1[RMA Item Item Qty To Return]))

v-easonf-msft
Community Support
Community Support

Hi, @Anonymous 

Not very clear what you want.

It seems that everything  works well in my test.

Pbix attached

56.png

 

 

It is suggest to share you sample data and you excepted result (pbix file /excel ) which will make it easiler to solve your issue.

 

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Greg_Deckler
Super User
Super User

Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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