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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
pbi1908
Helper III
Helper III

Drill down table with dates

Hi  everyone, 

I have 3 tables, 

Projects 

pbi1908_0-1666100315576.png

Tasks

Screenshot 2022-10-18 155724.png

and SubTasks

 

Screenshot 2022-10-18 160148.png

I would like to create a drill down table (matrix) in Power BI in which i will have 3 layers (Projects, Tasks, SubTasks name ) and as columns i will have the % Complete the Start Date  and End Date. 

The table i want to looks like the below. When i will expand the Farton --> i will see the Bear --> and then Alfa, Beta.

Screenshot 2022-10-18 163620.png

 

The relationships that i have in my model is one to many between Project and Task table and One to Mane between Task and SubTask table. I can modify any of those column if it's needed. 

 

Can you help me how can i achieve this ?

 

1 ACCEPTED SOLUTION
v-yalanwu-msft
Community Support
Community Support

Hi, @pbi1908 ;

Try to create a measure.

Measure = 
IF(ISINSCOPE('SubTasks'[SubTask Name]),MAX('SubTasks'[start date]),
IF(ISINSCOPE('Tasks'[Task Name]),MAX('Tasks'[start date]),MAX('Projects'[start date])))

The final show:

vyalanwumsft_0-1666171651652.png


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-yalanwu-msft
Community Support
Community Support

Hi, @pbi1908 ;

Try to create a measure.

Measure = 
IF(ISINSCOPE('SubTasks'[SubTask Name]),MAX('SubTasks'[start date]),
IF(ISINSCOPE('Tasks'[Task Name]),MAX('Tasks'[start date]),MAX('Projects'[start date])))

The final show:

vyalanwumsft_0-1666171651652.png


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

pbi1908
Helper III
Helper III

Hi @v-yalanwu-msft, initialy thanks for your answer, i already create the relationship and i also have the metrics that i want. 

My problem is the date, i would like to have the start and date in the visual as i showed in the screenshot above. 

I guess that i need to create a new table with all the dates and the IDs of my tables as foreign keys and add the date from the this table something like this, but again if i do this it takes the first date (or last) from subtask table (if the new relationship is between the subtask and the new dates table).

pbi1908_0-1666163210429.png

 

v-yalanwu-msft
Community Support
Community Support

Hi, @pbi1908 ;

First you could create a relationship like below:

vyalanwumsft_0-1666160317656.png

Then add matrix rather than table.

vyalanwumsft_1-1666160525632.png

the final show:

vyalanwumsft_2-1666160592089.png


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.