Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
10 years ago
Solved

DistinctCount IF?

Hi All,   I'm new to Power BI (and DAX) coming from Tableau.   I've got a question regarding the DiscountCount function.   I need to calculate a percentage of orders that include a certain item...
  • greggyb's avatar
    10 years ago
    CALCULATE(
        DISTINCTCOUNT( FactOrder[OrderNumber] )
        ,FactOrder[Line Item] = <certein item number>
    )