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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Zhinee
Helper III
Helper III

How to display dynamic table title based on the row I clicked (Live Connection)

my report is using a live connection, it has a session table and a joblet table.

One session can have multiple joblets

I want to display a dynamic table title based on the row I clicked in another table (showing session id).

For example:

  • When I click on a Session row, my Joblet table will shows joblets that belong to that session

  • I want the Joblet table title to show something like: "Joblets for Session id: xxxxx"

I asked chatgpt,
It tells me to create a measure:

JobletTableTitle =

IF (

HASONEVALUE(Session[SessionID]),

"Joblets for Session: " & VALUES(Session[SessionID]),

BLANK()

)
and it tells me go to:
Joblet table visual → Format → Title → fx → Field value → I can see my measure listed, but it's greyed out and cannot be selected.

How can I make this work?

1 ACCEPTED SOLUTION

I was able to make it work when I change my measure's Data type to Text on Measure tools

Zhinee_0-1749761710866.png

 

 

View solution in original post

3 REPLIES 3
kpost
Super User
Super User

How about this:

 

JobletTableTitle =
var selected = SELECTEDVALUE(Session[SessionID])

return

IF (

HASONEVALUE(Session[SessionID]),

"Joblets for Session: " & selected ,

""

)

 

But I think we can do better.  Because what if more than one session is selected, or what if none are selected, or all of them?  (This DAX measure also assumes your SessionIDs don't have commas in them, and there are no visual or page-level filters on the SessionID field affecting the visual where this title appears)

JobletTableTitle = 

var selected_sessions = IF(
    ISFILTERED(Session[SessionID]),
    CONCATENATEX(
        VALUES(Session[SessionID]),
        Session[SessionID], ", "
    ),
    "All"
)
 
 
var session_plural = IF(CONTAINSSTRING(selected_sessions , ",") || selected_sessions = "All", "Session IDs", "Session ID")
return
"Joblets for " & session_plural & ": " & selected_sessions


///Mediocre power BI advice, but it's free///

I was able to make it work when I change my measure's Data type to Text on Measure tools

Zhinee_0-1749761710866.png

 

 

I guess my issue now is that the measure I added is greyed out when I try to use it with the fx option for the table title. Therefore, I cannot dynamically change my joblet  table title 

Zhinee_0-1749760219016.png

 

Helpful resources

Announcements
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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