Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Cannot reference a non numeric measure in DAX from another Power BI dataset

Hi team, I connected with company sever via getting data from "PBI datasets". But when I create new measures, I find that I can only reference numeric fileds from that dataset. Non-numeric fileds ca...
  • d_gosbell's avatar
    3 years ago

    It is not valid to reference a column in an IF function in a measure like that. This is why the PROD_STATUS_CODE is not showing. It has nothing to do with the data type. 

     

    If you did something like COUNTROWS( FILTER( Query1, Query1[PROD_STATUS_CODE] = "XXX" )) it should work. If you can explain a bit more about what you are trying to calculate we can probably explain how to achieve the result you are after.