+ Reply to Thread
Results 1 to 4 of 4

Averagex measure in datamodel

  1. #1
    Forum Contributor
    Join Date
    10-14-2020
    Location
    Shanghai
    MS-Off Ver
    O365
    Posts
    156

    Averagex measure in datamodel

    Hi

    I do have a model with several tables, two tables are interested for my issue now.
    One with the dimension dates (each day one row). This table contains the working time per day (Dim_Date[Sum of Worktime]). Every Calender day has a fixed working time

    Another table one with values from production (tbl Index). The production table also has working time, how long was the machine running on that day. (Index[Workhours])

    Now I want to create a measure to calculate the usage per day.
    I created the measure. Its working but the totals are summarized, I want them to sum of each single component and then do the calculation
    Utilization_1
    Please Login or Register  to view this content.
    I tried to summarize the single components, same result
    Utilization_2
    Please Login or Register  to view this content.
    Then i tried the average, also wrong results
    Utilization_3
    Please Login or Register  to view this content.
    Did not expect that to be so hard for me

    any ideas?

    thanks
    Attached Files Attached Files
    Last edited by hansolu; 09-13-2021 at 01:12 AM. Reason: solved

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

    Re: Averagex measure in datamodel

    How did you get the total Worktime of 616? 88*7 ?



    Maybe try
    =DIVIDE(sum(Index[Workhours]),Sum(Dim_Date[Worktime])*COUNTROWS(Dim_MachineList))

    =204/528

    528 = 22 hour/day/machine * 4 days * 6 machines
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    10-14-2020
    Location
    Shanghai
    MS-Off Ver
    O365
    Posts
    156

    Re: Averagex measure in datamodel

    Hi,

    616 is just the Sum of Worktime but i saw that this also uses machinelist with Blanks. Ignoring this, I get the same results.
    I will test on my live system and let you know, first check was good

    thanks

  4. #4
    Forum Contributor
    Join Date
    10-14-2020
    Location
    Shanghai
    MS-Off Ver
    O365
    Posts
    156

    Re: Averagex measure in datamodel

    Hi
    worked, did some testing over the last days, thanks, will close the topic.

    thanks

+ 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. [SOLVED] Get members and values based on rank from Datamodel
    By hansolu in forum Excel Charting & Pivots
    Replies: 8
    Last Post: 09-13-2021, 01:10 AM
  2. [SOLVED] CubeValue Direct from DataModel
    By ptmuldoon in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 12-28-2020, 02:04 PM
  3. Pivot Table: Grand Total different measure from Column measure
    By chinneywow in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 08-07-2019, 06:22 AM
  4. Replies: 37
    Last Post: 08-02-2019, 05:47 AM
  5. VBA -- Creating Pivot Table from datamodel table
    By Vinod Krishna.C in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-04-2018, 10:21 AM
  6. [SOLVED] Export/Split data from DataModel to sheets
    By Speshul in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-21-2018, 01:15 PM
  7. Excel 2007 : need help - desperate measure...
    By giampo in forum Excel General
    Replies: 1
    Last Post: 08-21-2009, 05:44 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