Forum Discussion

fabsterfab's avatar
fabsterfab
Frequent Visitor
8 years ago
Solved

DAX Help - Measures and text

I have a single table which contains data for many different parameters throughout a facility. I am using FILTER to get data into measures for many different VARID's (flows,temps, chemical levels etc). This is working great but I want to bring in some text values that are stored in a different column called TEXTVALUE instead of the CURVALUE that works as shown below. Does anyone know how I can modify the syntax below to display text measures so I can use them in my reports?

 

Numeric Measures that average daily readings

Pump 1 Hours = CALCULATE(AVERAGE('Ptown DATATBL'[CURVALUE]), FILTER('Ptown DATATBL','Ptown DATATBL'[VARID]=268))

Pump 2 Hours = CALCULATE(AVERAGE('Ptown DATATBL'[CURVALUE]), FILTER('Ptown DATATBL','Ptown DATATBL'[VARID]=270))

 

 

 

 

  • I'm all set - i found out all I needed to do was replace average with VALUES to get the text information I needed.

     

    Thanks!

    Alan

2 Replies

  • fabsterfab's avatar
    fabsterfab
    Frequent Visitor

    I'm all set - i found out all I needed to do was replace average with VALUES to get the text information I needed.

     

    Thanks!

    Alan