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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
fjones0409
Regular Visitor

Dax filtering for text value

Hi,

 

I have a table where 1 column just has data of type 'text', it is essentially a description colulmn. I am trying to use a dax measure in which i can return this text, when i filter by another column value. 

 

Does anyone know how i can achieve this? For number columns its easy as i can use calculate and sum or average but not sure how to do the same and have it return text?

 

ie for a number i use:

Desc = calculate(averagex(table3,Table3[Data]),filter(Table3,Table3[Scenario]=[S2 Scen input]))
 
How can i change this for text, what functions work with strings?
 
Thanks,
 
Francesca
1 ACCEPTED SOLUTION
az38
Community Champion
Community Champion

hi @fjones0409 

for example, FIRSTNONBLANK()

Desc = calculate(FIRSTNONBLANK(Table3[YourTextColumn], 1), filter(Table3,Table3[Scenario]= "something") )

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

1 REPLY 1
az38
Community Champion
Community Champion

hi @fjones0409 

for example, FIRSTNONBLANK()

Desc = calculate(FIRSTNONBLANK(Table3[YourTextColumn], 1), filter(Table3,Table3[Scenario]= "something") )

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors