+ Reply to Thread
Results 1 to 4 of 4

Help with PowerQuery/Formula to calculate the distinct count of contexts per member

  1. #1
    Forum Contributor
    Join Date
    10-18-2016
    Location
    Chicago, USA
    MS-Off Ver
    Office 365
    Posts
    220

    Red face Help with PowerQuery/Formula to calculate the distinct count of contexts per member

    Hi Team,

    I have two tables -Input 1 and Input 2 ...Table Input 1 has the membernames mapped to the worklists -every member can be mapped to multiple worklists ; Input 2 table has the contexts mapped to worklists -each worklist can have multiple contexts and a context can repeat across multiple worklists...

    Now I am look for the output tab which has the distinct count of contexts at a member level...Can you please help me with a power query/formula for this..

    Thanks,
    Arun
    Attached Files Attached Files

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Help with PowerQuery/Formula to calculate the distinct count of contexts per member

    Please try

    Please Login or Register  to view this content.

    formula
    A2
    =UNIQUE(Input1!B2:B8)

    B2:B5
    =ROWS(UNIQUE(FILTER(Input2!$B$2:$B$14,ISNUMBER(MATCH(Input2!$A$2:$A$14,FILTER(Input1!$A$2:$A$8,Input1!$B$2:$B$8=A2),)))))
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    10-18-2016
    Location
    Chicago, USA
    MS-Off Ver
    Office 365
    Posts
    220

    Re: Help with PowerQuery/Formula to calculate the distinct count of contexts per member

    Thank you so much Bo_Ry!..

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,937

    Re: Help with PowerQuery/Formula to calculate the distinct count of contexts per member

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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. Replies: 4
    Last Post: 12-18-2020, 08:41 AM
  2. Replies: 3
    Last Post: 11-22-2020, 08:58 AM
  3. Formula for distinct count in Data Model excluding 0s
    By Abell in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-07-2019, 11:23 AM
  4. [SOLVED] SUM FREQUENCY formula to count distinct values w/ OR condition
    By HeyInKy in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-05-2015, 03:55 PM
  5. Replies: 10
    Last Post: 05-08-2012, 09:44 PM
  6. Formula - Count distinct / Countif??
    By Africa in forum Excel General
    Replies: 3
    Last Post: 02-29-2012, 11:24 AM
  7. Formula to count distinct values WITH a lookup comparison
    By rgunning06 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-16-2009, 05:30 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