Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Date doesn't filter

I have one measure that filters the data correctly by date:  Plant_Daily_AVG = CALCULATE(AVERAGE('Raw Data'[VALUE]),'Raw Data'[ORIGIN_CODE]="R",'Date'[Date]) (I linked the raw data [date] (which h...
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi Anonymous ,

     

    Since your result column is a calculated column, calculated columns can't dynamically change values, so he won't change based on slicer changes. You can create a measure instead.

    Result = 
    var _a=LOOKUPVALUE('Treatment Plant'[IPN],Report2[id],MAX('Treatment Plant'[id]))
    return IF(MAX('Report2'[IPN])=_a,[Plant_Daily_AVG],0)

    If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

     

    Best Regards,

    Neeko Tang

    If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly.