cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
Cathryn
Helper III
Helper III

dynamic title based on grid row selection

Hi All

 

Does anyone know how to create a  dynamic header based on a selection within a grid?  I know how to do it with slicers but it's not working when just selecting within a grid.

 

I've tried:

TCodeHeader = var tCodeSelected = SELECTEDVALUE('BI T-Code by Industry'[SAPTCode]) return "TCode: " & IF(ISBLANK(tCodeSelected), "All T-Codes", tCodeSelected)

 

and 

TCodeHeader = IF(OR(isFILTERed('BI T-Code by Industry'[SAPTCode]), isFILTERed('BI CONNECT Usage'[SAPTCode])) ,VALUES('BI T-Code by Industry'[SAPTCode]), "TCode not selected")

 

and 

 

TCodeHeader = IF(DISTINCTCOUNT('BI T-Code by Industry'[SAPTCode])=1 ,VALUES('BI T-Code by Industry'[SAPTCode]), "TCode not selected")

 

Maybe it's not possible yet?


Cathryn

 

1 ACCEPTED SOLUTION
Cathryn
Helper III
Helper III

I figured it out.   I was creating a column vs a measure.  A dynamic title won't work if you create a column with code I mentioned above.  It needs to be a measure just in case anyone else has the same issue.

View solution in original post

1 REPLY 1
Cathryn
Helper III
Helper III

I figured it out.   I was creating a column vs a measure.  A dynamic title won't work if you create a column with code I mentioned above.  It needs to be a measure just in case anyone else has the same issue.

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors