Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

View with sum of returned columns

(0) ShareShare
ReportReport
Posted on by 72
Hi everyone,
I hope I'm posting in the right place, if not, please let me know.
 
I have an optimization problem with my data entities to exploit them on PBI and would like to submit my idea to you.
 
I have two tables: InventItemPrice and BOMCalcTable. In InventItemPrice I have the cost prices of each items, and on my PBI, I'd like to display details of these calculations, which are in BOMCalcTrans. For example, I want to know the total of the RM and subcontracting costs per part. The problem is that doing this calculation with a measurement in PBI requires too much capacity.
 
So I'd like to create an InventItemPrice view with an additional column that would be the sum of the BOMCalcTrans rows corresponding to RM and subcontracting.
 
My first attempt seems unsuccessful. Here's the architecture with the Datasources:

But when I open the view via the table explorer, even though I haven't added any BOMCalcTrans fields and the relationship is in OneToOne, the InventItemPrice rows are still multiplied by the number of BOMCalcTrans rows returned by the relationship.
 
Hence my question: if I want to add to InventItemPrice the sum of several BOMCalcTrans lines returned by the relationship InventItemPrice.PriceCalcId = BOMCalcTrans.PriceCalcId, what's the best solution?
 
 
Thank you in advance for your advice.
  • Suggested answer
    JeanB Profile Picture
    JeanB 72 on at
    View with sum of returned columns
    Hello @Waed Ayyad
     
    I put DataAreaId in the relation because I saw it several times. Don't really know if it's necessary.
    Do you think it's useful?
     
    Thanks 
  • Suggested answer
    Waed Ayyad Profile Picture
    Waed Ayyad 6,556 Super User 2024 Season 2 on at
    View with sum of returned columns
     Hi @JeanB,
     
     Why are you using DataAreaId on the relation? InventItemPrice and BOMCalcTable  tables aren't shared?
     
     
     
     
    Regards,
    Waed Ayyad

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,466 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans