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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors