Forum Discussion

Dburnett's avatar
Dburnett
Regular Visitor
7 years ago
Solved

Converting non-numerical values to numerical values

I have data coming in from Microsoft Forms which is all non-numerical. I want to create alerts in Power BI when participants select particular options. Before I can set an alert the data must be numerical. How would I go about creating a measure that would be able to do this? 

  • Hi Dburnett ,

     

    We can create measure to work on the text data. Such as 

     

    Measure = CALCULATE(COUNTROWS(table),FILTER(table,table[column]="text"))

    And put it to card to make the alert work. If it doesn't meet your requirement, kindly share your sample data to me if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.

     

2 Replies

  • v-frfei-msft's avatar
    v-frfei-msft
    Icon for Community Support rankCommunity Support

    Hi Dburnett ,

     

    We can create measure to work on the text data. Such as 

     

    Measure = CALCULATE(COUNTROWS(table),FILTER(table,table[column]="text"))

    And put it to card to make the alert work. If it doesn't meet your requirement, kindly share your sample data to me if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.

     

  • Hi Dburnett ,

     

    Is your requirement is to convert the number which is in Text format to Numeric format?

    If so, you can use VALUE dax function which Converts a text string that represents a number to a number in numeric data type. 

     

    VALUE ("5")  -->returns 5.