+ Reply to Thread
Results 1 to 1 of 1

Measure not show correct with Filter pass trough datamodel

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

    Measure not show correct with Filter pass trough datamodel

    Hi

    I do have an actual not so complicate Datamodel.
    Its one Facttables with Production Data (tblsOSPR) and number of ok parts and another fact table with scrap data(tblScrap)
    Then some dimensiontables with MachineID, ScrapID, ArtikelID, Date

    What do I want: Create a Pivottable where I can drill down from total ScrapRate for a period to day and shift for each machine and articel and then also down to Scrapreasons.

    Base for good parts is the first Operation (Col. OP) for each Articel in tblOSPR
    With the help of this board I created a measure for my OKparts based on the firstOP
    HTML Code: 
    This is either taking the OK pcs for each operation, based on the drill down level.

    Now comes my issue. To be able to trigger the filter into my DimScrap table, I made another measure

    Please Login or Register  to view this content.
    Thats working great.
    If I show the OKFirst measure, i will see all scrapReasons and the value for OKFirst in each row.
    But with OKFirstCalculate I only see the rows with values for Scrap and the ScrapReason.

    My problem is now the dimension shift.

    In the attached example I created a Pivottable to show the problem.
    Machine Turn1 had scrap data in Shift 1 and 2. If I move the shift dimension to the row, everything is fine
    But if I delete or collapse the SHift dimension, my aggregation for the measure OKFirstCalculate does not aggreate the OK pcs per Machine, it shows the aggregation per shift.

    What i do not understand is why. OkFirstOP is correct, just show in every row for each scrapreason, just passing the filter through with calculate is changing the result.


    Any ideas why this is happening?

    thanks a lot
    Attached Files Attached Files

+ 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. Relationship issues in Datamodel and DAX Measure
    By hansolu in forum Excel Charting & Pivots
    Replies: 8
    Last Post: 03-14-2022, 07:06 AM
  2. [SOLVED] Pivot calculated field vs Datamodel measure
    By hansolu in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 11-16-2021, 10:08 PM
  3. [SOLVED] Pivot Table Created Measure won't show up sometimes
    By NewYears1978 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 10-18-2021, 02:44 PM
  4. Sort filtered and summarized table in Measure (Datamodel)
    By hansolu in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 09-30-2021, 10:00 PM
  5. [SOLVED] Averagex measure in datamodel
    By hansolu in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 09-13-2021, 01:12 AM
  6. [SOLVED] MAT Measure, LASTDATE not Correct expression to use?
    By toffeemark in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-24-2020, 03:28 AM
  7. [SOLVED] HOW TO PASS THE VALUE TO CORRECT INPUT BOX ?
    By jophy j via OfficeKB.com in forum Excel General
    Replies: 4
    Last Post: 07-21-2005, 12:05 AM

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