Forum Discussion

nmlinden's avatar
nmlinden
Regular Visitor
4 years ago
Solved

Need help with CALCULATE formula referencing different data sources

I am converting an Excel report to Power BI and need help with the DAX formula as I am creating a new column in one of my tables.  The Excel formula looks like this: =COUNTIF(SHEET_1[UsersEmail],[@...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi nmlinden ,

     

    I create an sample with four tables.

    Then use Transform data.

    Use Append queries.

    Close & Apply.

    Then use the following expression to create the calculated column.

     

    The number of occurrences = CALCULATE(COUNT(Sheet_1[UsersEmail]))

     

    Please check if the result matches your expectations.

    Attach the PBIX file for reference. Hope it helps.

     

    If this doesn't work for you, please consider sharing more details about it. And it would be great if there was a sample file without any sensitive information here.

     

    It makes it easier to give you a solution.

    1. Sample (dummy dataset) data as text, use the table tool in the editing bar.
    2. Expected output from sample data.
    3. Explanation in words of how to get from 1. to 2.

     

    Best Regards,
    Community Support Team_Gao

     

    If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

    How to get your questions answered quickly -- How to provide sample data