Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

SSRS - Fetch XML Values are multipled (decimal in the wrong place)

(0) ShareShare
ReportReport
Posted on by 89



What should be 29.26, appears as  292.6.  So I have to create a caluclated field that takes the value and * .1. 

Why would the values come in to the report so incorrectly?

  • unicorn_tech Profile Picture
    unicorn_tech 89 on at
    RE: SSRS - Fetch XML Values are multipled (decimal in the wrong place)

    There was something wrong with my fetchxml.  The aggregation in the article caused an issue, but redoing the fetchxml in a simpler format brought the correct values.  Thank you for your time.

  • unicorn_tech Profile Picture
    unicorn_tech 89 on at
    RE: SSRS - Fetch XML Values are multipled (decimal in the wrong place)

    Thank you for the suggestion.  I modified the fetch to the following:

    
    
    
    
    
    
    
    
    
    
    

    This resulted in a dependancy calculation error

    "Failure (An attribute can not be requested when an aggregate operation has been specified and its neither groupby nor aggregate. "

    ErrorDetails-_2800_16_2900_.txt

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: SSRS - Fetch XML Values are multipled (decimal in the wrong place)

    Hi unicorn_tech,

    Based on your description, you want to group by a field, but the sum result is not correct. Please refer to this document about aggregation in fetch xml, and then change you fetchxml to have a try:

    Use FetchXML aggregation (Microsoft Dataverse) - Power Apps | Microsoft Docs

  • unicorn_tech Profile Picture
    unicorn_tech 89 on at
    RE: SSRS - Fetch XML Values are multipled (decimal in the wrong place)

    I think  my problem is that I'm trying to use get the "area" (value) to subtotal based on Tablix Groupings.  Instead, it's just taking the first value.  I'd like to attach my fetchxml and my report, so you could see what's going on.

    When I use the field: Fields!ab_new_areaValue.Value, it only takes the first value of the grouping (rather than the sum total of the group.)  When I do SUM(Fields!ab_new_areaValue.Value), it multiplies the first value by 1,000, but it's still the first value.

    If I itemize the tablix, without grouping, I get all the correct entries.  The issue is in the grouping, which doesn't subtotal the value, per variety and year.

    This is the fetchxml:

      
        
        
        
        
        
        
        
        
        
        
        
          
        
        
          
          
          
          
          
        
        
          
          
          
          
          
          
          
          
          
            
            
              100000000
              100000003
              100000005
              100000004
              100000002
              100000001
            
          
                                    
                                    
                                    
                                    
                                        
                                        
    
    
                                        
                                        
                                
                                        
                                        
                                            100000000
                                            100000001
                                        
                                        
                                                            
                                                        
                                                        
                                                         
    
                                                            
                                                                
                                                            
                                                            
                                    
                                                                    
                                        
                                        
                                    
                                     
    
                                     
                                      
                                      
    
                                       
                                       
                                    
                                        
                                    
        
          
        
        
          
        
    
    
                                    
    
      
    

    groupings.PNG

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: SSRS - Fetch XML Values are multipled (decimal in the wrong place)

    Hi unicorn_tech,

    I created a Decimal column to test and it is still 29.26.

    pastedimage1653887905781v1.png

    Result:

    pastedimage1653887929956v2.png

    The following is my fetchxml:

      
        
        
        
        
        
          
        
      
    

    Could you share your fetchxml for further research?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans