Forum Discussion

saud968's avatar
saud968
Memorable Member
2 years ago
Solved

Calculated Column from Measure

I am using this Dax as a measure -  S = CALCULATE(     COUNT('Colleague Events'[SEARCH_ID]),     FILTER(         'Colleague Events',         'Colleague Events'[CAUSE2] IN {"didyoumeanAutomatic...
  • saud968's avatar
    saud968
    2 years ago

    The "Colleague Name" is from another column. However, I was able to resolve the issue by separating the filter. 


    IsDesiredCause =
        'Colleague Events'[CAUSE2] IN {"didyoumeanAutomatic", "didyoumeanClick", "searchboxSubmit",
                                       "searchboxAsYouType", "omniboxSearch", "omniboxAnalytics",
                                       "omniboxFromLink", "omniboxField", "searchFromLink"}
    Colleague Searches =
    CALCULATE (
            COUNT('Colleague Events'[SEARCH_ID]), ALLEXCEPT('Colleague Events', 'Colleague Events'[CAUSE2]), 'Colleague Events'[IsDesiredCause] = TRUE()
    )
    This gave the correct output

     

    Best Regards

    Saud Ansari

    If this post helps, please Accept it as a Solution to help other members find it. I appreciate your Kudos!