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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
ACraig08
Helper III
Helper III

Conditional Dynamic Value in Text Box

Hello! So you know how you can add a dynamic value inside of a text box:

ACraig08_0-1720703474385.png

I have been trying to find anything that provides documentation or a video tutorial on how to use this but nothing. 

I have a table like this:

Table Name: Added Project Count

ACraig08_0-1720703908014.png

I want to be able to put a dynamic value in there to call the project count based on the district. So my text box would look like this:

 

8 added in D1

8 added in D2

6 added in D3

7 added in D4

...

 

But I can't seem to figure out how to reference a specific table and column and it's value. Any help, whether it is how to actually do it or a link to documentation about this, would be SO AMAZING!!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @ACraig08 

 

I suggest that you can put the results you want into a card visual.

DAX:

Measure = SELECTEDVALUE('Table'[Project count])&"  added in  "&SELECTEDVALUE('Table'[District])

 

Result:

vjialongymsft_0-1721033128765.png

vjialongymsft_1-1721033154999.png

 

 

At the same time, you can also modify the format of the card visual.

vjialongymsft_2-1721033270982.png

 

 

 

 

 

 

Best Regards,

Jayleny

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
jdbuchanan71
Super User
Super User

@ACraig08 

I think this will give you what you are looking for.

 

Concat = 
CONCATENATEX (
    'Added Project Count',
		CALCULATE ( SELECTEDVALUE ( 'Added Project Count'[Project Count] ) ) & 
		" added in " &
		CALCULATE ( SELECTEDVALUE ( 'Added Project Count'[District] ) ),
    UNICHAR ( 10 ),
    CALCULATE ( SELECTEDVALUE ( 'Added Project Count'[District] ) )
)

 

jdbuchanan71_1-1720704705631.png

 

 

So is there no way to do it within the "Ask a question about your data" box so it's one district at a time and I can edit the formatting. 

Anonymous
Not applicable

Hi @ACraig08 

 

I suggest that you can put the results you want into a card visual.

DAX:

Measure = SELECTEDVALUE('Table'[Project count])&"  added in  "&SELECTEDVALUE('Table'[District])

 

Result:

vjialongymsft_0-1721033128765.png

vjialongymsft_1-1721033154999.png

 

 

At the same time, you can also modify the format of the card visual.

vjialongymsft_2-1721033270982.png

 

 

 

 

 

 

Best Regards,

Jayleny

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.