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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
azeemnazim
Helper II
Helper II

I have an issue that the negative values in the NetAmount Column are not coming up correctly on sum

The total sum of NetAmount with respect to Item Code for date slicer is not comming up correctly when compared to calculating the sum output manually  mainly for 'D' Item Code i tried evrey thing but i am not able  to deduce a satisfying solution Please Help

 

Objective :-Create a date parameter and basis the selection of date, all analyes of dashboard should update           
             
Requirement :-Display a date parameter in the Dashboard offering flexibility to users to see a dashboard as on particular date           
             
Scenario :-Date selected - 31/01/19           
 Create a bar diagram summarizing Item Code wise Net Amount for transactions on or before 31/01/19 under Date Column            
 Simultaneously, plot another graph summarizing all transactions due on or before 31/01/19 basis Due Date Column           
             
Data :-            
             
DateDue DateItem CodeNet Amount         
05-10-201804-11-2018A 2,00,000          
05-10-201804-11-2018B 50,000          
05-10-201804-11-2018C 1,50,000          
21-11-201821-12-2018A 2,84,200          
21-11-201821-12-2018B 2,00,000          
22-12-201821-01-2019A 7,86,135          
04-01-201903-02-2019B 1,84,200          
01-01-2019 D 10,00,000          
12-02-2019 D 12,00,000          
18-02-2019 D 13,00,000          
06-03-2019 A-1,85,500          
29-01-2019 D-36,29,993          
13-02-2019 D-77,604          
             
             
1 ACCEPTED SOLUTION

Hi  @azeemnazim ,

 

Is below pic your expected output?

Annotation 2020-05-22 183648.png

Create a measure as below:

 

Measure 2 = CALCULATE(SUM('Net_Amount'[Net Amount]),FILTER(ALL(Net_Amount),'Net_Amount'[Item Code]=MAX('Net_Amount'[Item Code])))

 

If it's not what you need,pls advise me your expected output.

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

View solution in original post

5 REPLIES 5
v-kelly-msft
Community Support
Community Support

Hi @azeemnazim

 

It's a measure total issue, if you couldn't get help from what is provided by @Greg_Deckler ,could you pls upload your .pbix file to onedrive business and share the link with me?Do remember to remove the confidential information.

Much appreciated.

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

Hi,

It would be very helpful if the objective in the question can be met , Just for you information i am getting wrong values for the item code 'D' on the dates in march , Moreover i tried the solution provided above but it didn't helped me much . I am stuck on this from a long time it would be very helpful if you could provide a solution to this

Many Thanks !!

Please find the desired path below

PATH :https://1drv.ms/u/s!AlF3e3HLnNPIa3eOMd9DyD_l4BU?e=fBUHyL

Greg_Deckler
Community Champion
Community Champion

This looks like a measure totals problem. Very common. See my post about it here: https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376

Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907



Follow on LinkedIn
@ 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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Hi ,

The Value of th NetAmount for  Item code D is Highlighted in the attached Screenshot is not comming up correctly , I tried your solution but it didn't helped

 

 

Screenshot (86).png

Hi  @azeemnazim ,

 

Is below pic your expected output?

Annotation 2020-05-22 183648.png

Create a measure as below:

 

Measure 2 = CALCULATE(SUM('Net_Amount'[Net Amount]),FILTER(ALL(Net_Amount),'Net_Amount'[Item Code]=MAX('Net_Amount'[Item Code])))

 

If it's not what you need,pls advise me your expected output.

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.