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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
TTPP81
Frequent Visitor

Using combined data from two columns

How do I create a timeline in a gantt chart using combined data from two columns? Can someone helpful please tell me the codes / measures / conditions that I should use?

 

Refer to picture attached.

 

A Family Model (column 1) only requires one review check regardless how many model names they contain. In this case, "Credit Family Model" is the main family for the three models "Credit 1 model", "Credit 2 Model" and "Credit 3 Model" so it only requires one review check. If a Model name (column 2) does not have a Family name (N/A in Family column), then it will count as one review check. In the first table, there is a total of 7 review checks because there are 3 Family models and 4 Model Names without a family model. 

 

Capture.JPG

1 ACCEPTED SOLUTION
BA_Pete
Super User
Super User

Hi @TTPP81 ,

 

I may be misunderstanding the requirements, but it seems as though you can just create a new [Total Check] column using the following code:

if [Family] = "N/A" then [Model Name] else [Family]

 

You can then use this new column to Group By.

Depending on how [Date] and [Team] get populated in the full data (duplicated [Total Check] per [Date]/[Team] etc.) you can use different aggregated columns for [Date]/[Team].

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




View solution in original post

3 REPLIES 3
Omid_Motamedise
Super User
Super User

Why tge date for the frequency check model is changed to 1/3?

If my answer helped solve your issue, please consider marking it as the accepted solution. It helps others in the community find answers faster—and keeps the community growing stronger!
You can also check out my YouTube channel for tutorials, tips, and real-world solutions in Power Query with the following link
https://youtube.com/@omidbi?si=96Bo-ZsSwOx0Z36h
BA_Pete
Super User
Super User

Hi @TTPP81 ,

 

I may be misunderstanding the requirements, but it seems as though you can just create a new [Total Check] column using the following code:

if [Family] = "N/A" then [Model Name] else [Family]

 

You can then use this new column to Group By.

Depending on how [Date] and [Team] get populated in the full data (duplicated [Total Check] per [Date]/[Team] etc.) you can use different aggregated columns for [Date]/[Team].

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




thank you, it worked now as I replace blanks to N/A

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors