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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
joshua1990
Post Prodigy
Post Prodigy

Dax Measure to get specific text value

Hello everyone!

I have a table like this:

AreaDescription
AMounting Production Area ...
B...
C...
D...

 

Now, I am looking for a measure that shows me the text for Area = "B".

I need to display this in a matrix/ table. Just this sentence.

 

How can I solve that?

With concatenate?

1 ACCEPTED SOLUTION

How about this one?

 

Description for B = CALCULATE(MIN(Table[Description]), Table[Area] = "B")

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

8 REPLIES 8
waeltken
Helper I
Helper I

Hey y'all - when I run this text lookup based on filter conditions as a calculated field witihin a table this code returns blank for all rows, even though each row has Position ID and Position Min Dates. Any idea under what conditions it would return blanks? No error message. Any way to triage? The Change Reason column is text

PositionMinReasonCode =

VAR VPosition = PositionsDateRange[Position ID]

RETURN

CALCULATE(
    MIN(PositionsDateRange[changeReason (Picklist Label)]),
    PositionsDateRange[Effective Date] = PositionsDateRange[PositionMinDate],
    PositionsDateRange[Position ID] = VPosition
)

 

Regards,

 

 

Henrik

Fowmy
Super User
Super User

@joshua1990 

Can you show me how your matrix displays now? or what do you need in Column and Row and the value?

________________________

Did I answer your question? Mark this post as a solution, this will help others!.

I accept KUDOS 🙂

YouTube, LinkedIn

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

thanks for your reply @Fowmy :

For now, it looks like how I need it.

But I have filtered this matrix.

I would like not to filter. I would like to filter within the measure.

 

@joshua1990 

Not clear enough, provide a clear explanation with example.

________________________

Did I answer your question? Mark this post as a solution, this will help others!.

I accept KUDOS 🙂

YouTube, LinkedIn

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

I have a table where I have for each area a description like provided in the first post.

Then I have a matrix visual in the top of my view/ report where I would like to display one specific for the corresponding area.

Like the above, I would like to get the text where Area = B.

But I don't want to filter that within the visual. I would like to filter that in a measure like:

FILTER ( Area = "B") or so

 

@joshua1990 

 

Can show how the output should look like ?

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

@Fowmy 

 

The matrix should display just this value:

Mounting Production Area 

 

 

 

How about this one?

 

Description for B = CALCULATE(MIN(Table[Description]), Table[Area] = "B")

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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