+ Reply to Thread
Results 1 to 7 of 7

Best method of creating a calculated column on the one side of a many to one relationship

  1. #1
    Forum Contributor
    Join Date
    08-03-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    610

    Best method of creating a calculated column on the one side of a many to one relationship

    I'm hoping the description sums it up, I've have two very simple tables one with sales one with products and their pirce,
    I wanted to create a calcualted columns on the 'product ' one side and thought I would be able to do this uisng
    'Calculatedtable', but couldn't. I have done it using :

    Please Login or Register  to view this content.
    which works and

    Please Login or Register  to view this content.
    which doesn't.

    I was just hoping for some advice on approach and or direction to some info on many to one side calcuaations,

    Richard, workbook attached .
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Best method of creating a calculated column on the one side of a many to one relations

    This would be your basic calc...
    =VLOOKUP([@Product],Product,2,0)

    If you want total cost...
    =VLOOKUP([@Product],Product,2,0)*E5
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Contributor
    Join Date
    08-03-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    610

    Re: Best method of creating a calculated column on the one side of a many to one relations

    Yes,
    but I want to do using DAX, as I said wrapping the SUM of the many side in Calclulate works, I'll have to go through Matt Allington's book, I think that's where I came across it.

    RD

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Best method of creating a calculated column on the one side of a many to one relations

    There was no mention of DAX in your question?

  5. #5
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Best method of creating a calculated column on the one side of a many to one relations

    Hi,

    What's wrong with your current working solution?

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  6. #6
    Forum Contributor
    Join Date
    08-03-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    610

    Re: Best method of creating a calculated column on the one side of a many to one relations

    Nothing really, I just have this I idea that I should be able to use RELATEDTABLE.

    RD

  7. #7
    Forum Contributor
    Join Date
    08-03-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    610

    Re: Best method of creating a calculated column on the one side of a many to one relations

    True, Sorry , an oversight on my part.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Create Calculated Field with Relationship Pivot Tables
    By blens1 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 11-18-2019, 04:32 PM
  2. Replies: 1
    Last Post: 11-17-2019, 09:56 AM
  3. [SOLVED] How to create a month and Year-to-date column side by side in pivot table
    By Dewdrop in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 06-13-2017, 02:25 AM
  4. Compare 2 sets of values in side-by-side Stacked Column chart
    By dlaudenschlager in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 03-21-2016, 01:34 PM
  5. Having trouble creating a button that counts when two strings are side-by-side
    By bananius in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-19-2014, 10:44 AM
  6. Creating stacked graphs side-by-side
    By yssem in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 09-14-2006, 07:18 AM
  7. [SOLVED] How do I make a stacked column chart with side-by-side comparison.
    By Tim in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 06-08-2005, 11:05 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1