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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Modeling data and relationships through the "PATH" field

Hello everyone,

I'm getting data from a bbdd oracle tables. The data comes from a proprietary application that relates investments, projects and programs through a "PATH" field. I will show you screenshots of the tables (investment portfolio and investment). In the first one, investment portfolios and their initiatives are defined. In the second table, all the investments that are not portfolio are defined (initiatives, projects and programs) and that through the "PATH" field, I must obtain the following results (screen results) in a PowerBI report.

I guess it would be better to model the data with M and then define a relationship, than do all the work with DAX. But I do not know where to start.

Thank you.

 

table "investment portfolio"

 

ID_PORTFOLIOACTIVENAME.PORTFOLIOId_INVNAME
000001trueCorporate strategic initiatives102030CSI001 - Digital Efficiency
000001trueCorporate strategic initiatives405060CSI002 - Digital Security
000001trueCorporate strategic initiatives708090CSI003 - Digital Challenge
000002trueRisk investments302010RI001 - 5G
000002trueRisk investments605040RI002 - WIFI or LIFI
000003trueNational investments908070NI001 - Digital transformation

 

 

table "investment"

 

ID_INVNAME%AWARDPATHTYPE OF INVESTMENTBUDGET
102030CSI001 - Digital Efficiency0%102030Initiative1000000
405060CSI002 - Digital Security0%405060Initiative1000000
708090CSI003 - Digital Challenge0%708090Initiative1000000
302010RI001 - 5G0%302010Initiative1000000
605040RI002 - WIFI or LIFI0%605040Initiative1000000
908070NI001 - Digital transformation0%908070Initiative1000000
111111PRY - Work environment0%908070 | 111111Project10000
111111PRY - Work environment100%708090 | 111111Project10000
111111PRY - Work environment0%302010 | 111111Project10000
222222PGR - Digital culture100%708090 | 111111 | 222222Program50000

 

 

results "depending on the filter by portfolio, the results should be shown in the following tables"

 

Filter by PortfolioBudget  
Corporate strategic initiatives3060000  
    
    
Initiatives  table
CSI001 - Digital Efficiency1000000  
CSI002 - Digital Security1000000  
CSI003 - Digital Challenge1060000  
    
    
Proyects  table
PRY - Work environment10000  
    
    
Programs  table
PGR - Digital culture50000  

 

 

Filter by PortfolioBudget  
Risk investments2000000  
    
    
Initiatives  table
RI001 - 5G1000000  
RI002 - WIFI or LIFI1000000  
    
    
    
Proyects  table
PRY - Work environment0  
    
    
Programs  table
PGR - Digital culture0  

 

Filter by PortfolioBudget  
National investments1000000  
    
    
Initiatives  table
NI001 - Digital transformation1000000  
    
    
    
    
Proyects  table
PRY - Work environment0  
    
    
Programs  table
PGR - Digital culture0  

 

2 REPLIES 2
v-qiuyu-msft
Community Support
Community Support

Hi @Anonymous, 

 

In Query Editor, you can merge these two queries, then split the column PATH by delimiter "|", then group by the first part column generated from the PATH column to return total of Budget column. Then merge the investment portfolio to this new query. For more information, please check the attached pbix file. 

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Good morning,

I appreciate the effort. Surely I do not explain myself well. I need to create the relationship between them to be able to show 3 tables with the different levels of investment. In the first table show the initiatives, the second table shows the projects and in the third table the programs. There will be a filter with the investment portfolios, and depending on the portfolio you select, you should filter in the 3 tables the investments by their PATH ratio. And finally, what you have achieved, add the budget conditioned by the award.

Thank you anyway. I do not know if you could help me more.

A greeting.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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