+ Reply to Thread
Results 1 to 5 of 5

Dax measure for uniq employee and average power pivot

  1. #1
    Forum Contributor alexxl's Avatar
    Join Date
    04-21-2015
    Location
    Romania
    MS-Off Ver
    2019/2010
    Posts
    305

    Dax measure for uniq employee and average power pivot

    First measure:name: Employcount=CALCULATE(COUNT([Nume Angajat]),FILTER(ALL(Table2[Data final de luna]),[Data final de luna]=MAX([Data final de luna])))

    This measure is extracting the uniq from collumn d sheet ED "Nume Angajat" and is always returning the maximum value for the selected period.

    If for example we have selected 2021, it will return the last month where we had names in collumn d sheed ED "Nume Angajat" so for 2021 in cel c2 we are looking at last month that had names. and on a deeper level we can go for month and in this situation it will show the uniq names for the month selected.

    But if we look in qtr it will give us only the last month (because of that max(data final de luna).


    Second measure:
    name: Activinperioada analizata =CALCULATE([Employ count],FILTER(Table2,Table2[Angajati/body]=VALUE(1)))

    Is an update of the first measure and is exatracting only the collumn U with value 1 wich means they wore active in that period of time.

    My request:

    I would like to extractc the average of collumn U (angajati/body) - wich represent the active employees for a give period of time like a qrt.

    If i simply put the average without a measure in e1 it will return the average of all ones that i have wich ofcourse is one.
    I need something like a count of uniq active employes first and than ading another measure to this wich will average the values.

    And as a plus request i would like to average only the value 1 in collumn u.
    01.25.2024 AtritieED_exercitiu.xlsm


    Alex

  2. #2
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Dax measure for uniq employee and average power pivot

    I changed the value of column E, but I would suggest to you to show expected values in your sheet.
    Attached Files Attached Files

  3. #3
    Forum Contributor alexxl's Avatar
    Join Date
    04-21-2015
    Location
    Romania
    MS-Off Ver
    2019/2010
    Posts
    305

    Re: Dax measure for uniq employee and average power pivot

    The answer you ve provide it offers as it shows a cotagem but it does not do the averages of collumn D Activ in perioada analizata as i need. can you help me further. sorry for my delayed answer!

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,933

    Re: Dax measure for uniq employee and average power pivot

    Thread moved to Charting & Pivots at OP's request.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,933

    Re: Dax measure for uniq employee and average power pivot

    Administrative Note:

    Unfortunately, it has come to our attention you have violated Guideline #3 of our Forum RULES:

    Don't private message, visitor message or email Excel (or Access, Word, etc.) questions to moderators or other members.

    Breaking this guideline is considered harassment by most of our contributors and thus cannot be tolerated. Repeat offense could lead to a permanent ban, so do take this caution to heart.

    If I were able to assist you I would have already offered help. I can't help you with this - sorry.

+ 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: 07-01-2020, 02:13 AM
  2. Replies: 2
    Last Post: 11-27-2019, 08:55 PM
  3. Expand just one measure in columns in Power Pivot
    By RrR2010 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 08-08-2019, 08:40 AM
  4. DAX Power Pivot Measure Help
    By chicagolarsons in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-22-2019, 08:57 PM
  5. Power Pivot: Adding a measure to a Pivot Chart
    By jlt199 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 12-22-2017, 12:40 PM
  6. [SOLVED] RANK.EQ Function in Power Pivot Measure
    By rv02 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 03-16-2015, 04:26 PM
  7. Excel Power pivot measure
    By eajustin15 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 12-12-2013, 05:16 PM

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