Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
fabsterfab
Frequent Visitor

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))

 

 

 

 

1 ACCEPTED SOLUTION
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

View solution in original post

2 REPLIES 2
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

MFelix
Super User
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

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.