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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
HuskyFan01
New Member

I need to create a custom table/matrix visual

I need to create a custom matrix or table visual. I'm trying to build a predecessor-successor report from querying data out of P6. I have two tables, one lists all of my activity ID's, as well as all of the information I need about each activity, and it only lists every activity from the schedule one time. The other table only has two columns that I need, "predecessor activity ID's" and "Successor activity ID's". It lists every ID multiple times for each column, it lists an activity id in either the pred or succ column and then lists one of its pred/succ's in the other column of that row, if an activity has multiple logic ties then it lists that ID multiple times in whichever column as necessary. 

I need to use this information to create a report that lists the "selected" activity ID in the middle row of the visual, with all of its predecessor's in rows above it, and all of its successor's in the rows below it. 

For example, this is what I want the end result of the visual to look like:

| Pred1 Act ID | Pred1 Act Name | Relationship type | Pred1 Act Start (date) | Pred1 Act End (date) | Lag | Total float |
| Pred2 Act ID | Pred2 Act Name | Relationship type | Pred2 Act Start (date) | Pred2 Act End (date) | Lag | Total float |
| Main Act ID | Main Act Name | This column blank | Main Act Start (date) | Main Act End (date) | Lag | Total float |
| Succ1 Act ID | Succ1 Act Name | Relationship type | Succ1 Act Start (date) | Succ1 Act End (date) | Lag | Total float |
_________________________________________________________________________________________________________________________

| Pred1 Act ID | Pred1 Act Name | Relationship type | Pred1 Act Start (date) | Pred1 Act End (date) | Lag | Total float |
| Main Act ID | Main Act Name | This column blank | Main Act Start (date) | Main Act End (date) | Lag | Total float |
| Succ1 Act ID | Succ1 Act Name | Relationship type | Succ1 Act Start (date) | Succ1 Act End (date) | Lag | Total float |

| Succ2 Act ID | Succ2 Act Name | Relationship type | Succ2 Act Start (date) | Succ2 Act End (date) | Lag | Total float |
_________________________________________________________________________________________________________________________

etc.


I've been trying to figure this out for about two weeks now with no luck. I'm considering learning Python to see if I can write code for a custom Python visual in Power BI to get this to work. Any help would be much appreciated.

(Note: All of the information I need to create the visuals exists already in the two tables I mentioned)

1 REPLY 1
Anonymous
Not applicable

Hi @HuskyFan01 

 

Could you please provide me with some sample data and the result based on sample data? That would be very helpful. How to provide sample data in the Power BI Forum - Microsoft Fabric Community Or show them as screenshots or pbix. Please remove any sensitive data in advance. If uploading pbix files please do not log into your account.

 

Best Regards,
Yulia Xu

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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