How to replicate a measure used in SAP BO to DAX

Learner DAX 41 Reputation points
2020-11-17T14:44:27.107+00:00

Hi

I am trying to replicate one of the measures created in SAP BO to tabular model using DAX. Below is the existing measure formula

=Count([A]) In ('Table'.[B];'Table'.[C];'Table'[Calculated Column1]) Where ([Flag] = "30 Days")
How should I replicate the same using DAX

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,283 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Lukas Yu -MSFT 5,821 Reputation points
    2020-11-19T09:18:47.003+00:00

    Hi,

    Did you mean count the rows of table if ColumnB, ColumnC and CalculatedColumn1 all equal to "30 Days" ?
    IF so,

    =CALCULATE(COUNTROWS(Table),FILTER(Table,Table[ColumnB]="30 Days" & Table[ColumnC]="30 Days" & Table[CalculatedColumn1]="30 Days"))


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.