Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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
Solved! Go to Solution.
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.
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.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
65 | |
64 | |
56 | |
39 | |
27 |
User | Count |
---|---|
85 | |
59 | |
45 | |
43 | |
38 |