Forum Discussion
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
- MFelix
Super User
Hi fabsterfab,
Assuming that you want to find all the text values that are within the select values maybe you can use the CONTENATEX function, usually I use to the headers of my reports to show company names selected or customers.
Check this link
https://msdn.microsoft.com/en-us/query-bi/dax/concatenatex-function-dax
If you want I can send you an example.
Regards,
MFelix
- fabsterfabFrequent 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