How to replicate a SAP BO calcuated column using DAX

Learner DAX 41 Reputation points
2021-01-06T22:27:51.223+00:00

Hi

I am trying to create a calculated column which is originally written in SAP BO as below

=NoFilter(Sum(([Column A])) In ([Table].[Column 1] ; [Column 2]))

I tried to write the same thing using DAX like below

= Calculate(SUM(column A), ALLEXCEPT(Table, Column 1, column 2))

But it is not showing results as expected.

Please advise....

SQL Server Analysis Services
SQL Server Analysis Services
A Microsoft online analytical data engine used in decision support and business analytics, providing the analytical data for business reports and client applications such as Power BI, Excel, Reporting Services reports, and other data visualization tools.
1,284 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Lukas Yu -MSFT 5,821 Reputation points
    2021-01-07T02:14:45.633+00:00

    Could you explain SAP BO expression so we could work on the DAX?

    What is the relation between [Column A] [Column 1] [Column 2] and [Table] ?


  2. Lukas Yu -MSFT 5,821 Reputation points
    2021-01-08T04:41:31.833+00:00

    From what you described :

    = Calculate(SUM(Table[amount]), ALLEXCEPT(Table, Table[Column 1], Table[column 2]))
    

    Should be right.

    If not, please share some example of what is expected. And have you sliced the table with column 1 and column 2 ? What is you current issue looks like ?


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.