Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
1 year ago
Solved

Memory Error

hi, I have a fact table where one of its columns stores a certain value(trafiktime). I have three other tables that are indirectly related to it, which I call them A,B C, . I have a search table tha...
  • rajendraongole1's avatar
    1 year ago

    Hi Anonymous - you can create a measure establishes virtual relationships between LookupTable and tables A, B, and C using TREATAS. It filters FactTable efficiently without looping over large datasets unnecessarily.

     

    AVGMeasure2 =
    VAR FilteredFactTable =
    CALCULATETABLE(
    'FactTable',
    TREATAS(
    VALUES('LookupTable'[Line]), 'A'[Number]
    ),
    TREATAS(
    VALUES('LookupTable'[Direction_Code]), 'B'[Direction]
    ),
    TREATAS(
    VALUES('LookupTable'[Points]), 'C'[Point]
    )
    )
    RETURN
    AVERAGEX(FilteredFactTable, 'FactTable'[trafiktime])

     

    try the above one, still if issue exists use Performance Analyzer in Power BI to identify the exact steps causing memory issues.Break down the measure into smaller parts and evaluate intermediate results.