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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Dynamic Table - Not Affected by Source Table fields except one Field

Hi All,

I am new to Power BI. Please assist, urgent help needed.

 As you can see in below Gantt chart, I am trying to display resource allocation with respect to Skills (present in vertical redacted part) along with training timelines. (I have grouped the resources assigned for the skills)

When I select any skill from the chart by clicking on bar, another Gantt chart appear below the first Gantt chart(refer to 2nd screenshot) and 2nd Gantt chart show the bars for each resource who need to learn the selected skill from first Gantt chart.

And I am getting all the resources in 2nd Gantt chart for the selected skill when the training timelines are same for allocated resources.

 

Meenakshi_Kaus_0-1640876025115.png

 

But when training timelines are different for resources assigned to learn a skill, this method is not working. Let’s take an example, 2 resources assigned to learn Java but have different timelines, so when I select the bar of JAVA skill, 2nd Gantt chat show only one resource (refer to 2nd screenshot).

Meenakshi_Kaus_1-1640876025122.png

 

The reason why it’s not working is because both the Gantt charts are using same “Skill Gaps” table.

So, I want that 2nd Gantt Chart won’t be affected by any field coming from “Skill Gaps” Table except Skill Field.

 In order to make it work I am trying to create a disconnected table for 2nd Gantt Chart which derives from “Skill Gaps” Table and filter it based on selected skill.

Meenakshi_Kaus_2-1640876025124.png

 

But this Dax expression is not working and giving no output.  Please help to figure it out how to create a New Table which won’t affected by fields coming from “Skill Gaps” Table except Skill Field.   

 

Here is the attached .pbix file:

https://drive.google.com/file/d/1U-wwgGG11ViRlJnuAq6v_9TThuLxgVGK/view?usp=sharing

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I am able to solve the issue. I have created a disconnected table and used treatas function to make the visual relationship between tables. I have used following expression in measure filed in disconnected table

Meenakshi_Kaus_0-1641286386098.png

 

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Hi @Anonymous 

I am so glad to hear that you have solved your issue. Please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regard

Community Support Team _ Ailsa Tao

Anonymous
Not applicable

I am able to solve the issue. I have created a disconnected table and used treatas function to make the visual relationship between tables. I have used following expression in measure filed in disconnected table

Meenakshi_Kaus_0-1641286386098.png

 

bcdobbs
Community Champion
Community Champion

Hi @Anonymous,

 

Your DAX is creating a calculated table. However caclulated tables are only refreshed when the model is loaded with data. Eg they are never dynamic. The reason it therefore shows blank is there is no SELECTEDVALUE so that line returns blank.

 

You could create a dynamic table in a variable within a measure but I suspect there might be easier ways of achieving what you are trying. Are you able to share a demo pbix file?

 

Thanks


Ben



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!
Anonymous
Not applicable

@bcdobbs  Thanks for responding. Sure I will share the pbix file but I am not getting option to attach the  .pbix file. Could you share your email, I can sent you...

I created two new tables:

 

Skills = 
    DISTINCT ( 'Skill Gaps'[Skills] )

SkillsTable2 = 
SUMMARIZE(
    'Skill Gaps',
    'Skill Gaps'[Skills],
    'Skill Gaps'[Resource],
    'Skill Gaps'[Start_Date],
    'Skill Gaps'[End_Date]
)

 

Swapped both your visuals to use Skills from the new Skills dimension table.

 

In the second visual switched the other fields to come from SkillsTable2



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!
Anonymous
Not applicable

Thanks  @bcdobbs for looking into it but the problem still persists. Sorry in case I was not clear before about the problem.

In my data, for skill Java, there are two resources assigned (James & William) but both has different timelines to learn Java.

Meenakshi_Kaus_0-1641144211593.png

But in below screenshot, I selected James’s bar for Java Skill from Ist Gantt Chart, but 2nd Gantt Chart shows only James. I want to see both James & William in 2nd Gantt chart irrespective of where I click on Java bar.

Meenakshi_Kaus_1-1641144223903.png

 

My expectation is to see the 2nd Gantt chart output as below

Meenakshi_Kaus_2-1641144240118.png

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.