Forum Discussion

YunJ's avatar
YunJ
Post Prodigy
6 years ago
Solved

Filter in calculation

Hi, I wrote a measure as following. only filtered Category-L1, but the result doesn't match the excel file...

  • YunJ ,

     

    This answer may answer your question.

     

    Community Support Team _ Jimmy Tao

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

     

     

9 Replies

  • YunJ , can not say without looking at data.

    Can you share sample data and sample output.

     

    Just check that non filtered data and the number of rows is matching. This means no data load issue. If they are not matching the check if there is a data load issue

  • YunJ ,

     

    As per your screen shot, Brand and Category_FLag columns are filtered in Excel. And you only applied Category_Flag filter in your measure. Perhaps, that's why your answer is not matching.

     

    You can either add Brand="3CE" in your measure along with Category_flag or clear Brand filter from excel and see the result.

     

     

    • YunJ's avatar
      YunJ
      Post Prodigy

      Hi Tahreem24 

      What I compared in the screenshot is about 3CE no matter in excel or table in Power bi.

      Please check my previous reply which is with pbix file. 

       

      Thanks a lot for your help!1