Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Convert Tableau calculation to Power BI

1.  COUNTD(if UPPER([ TYPE 1 ])='MAJOR' THEN [NAMES]END)
2.  RANK_UNIQUE(COUNTD([TYPE 1]))

How to conver this tableau functions into Power BI dax ?

  • Anonymous , Sorry double quote. try search

     

    countx(filter( table, search("MAJOR",Table[ TYPE 1 ],,0) >0) , Table[Name])

     

    or

     

    countx(filter( table, UPPER(Table[ TYPE 1 ])='MAJOR'), Table[Name])

     

    If this does not help
    Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

3 Replies