Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Measure to Count missing values from lookup table

Hi There,    I have put together a PnL in Power BI through a BC connection.   In order to get the correct Sort Order/Layout and Sub Headers, I needed to create an Excel Lookup Table that is...
  • v-janeyg-msft's avatar
    5 years ago

    Hi, Anonymous 

     

    If I understand what you mean, I think you can create a measure.

    Like this:

    measure =
    COUNTROWS ( DISTINCT ( tablemain[Account_Subcategory_Descript] ) )
        - COUNTROWS ( DISTINCT ( tablesub[Account_Subcategory_Descript] ) )
    

    If it doesn't solve your problem, please feel free to ask me.

     

    Best Regards

    Janey Guo

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.