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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.