Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi,
I am having two different measures whcih calculate the no of task assigned and tasks delayed for difefrent projects . Both projects are having different data files with no relationship. No of engineers for projects may differ. However names will be mentioned in same format.
I want to create the following tables for each project and finally combine the tables as per engineer name. Kindly help.
Project 1
Engineer Name #Task Assigned # Task Delayed
A 3 0
B 4 1
C 1 0
D 4 2
E 1 0
Project 2
Engineer Name #Task Assigned # Task Delayed
A 7 2
B 6 1
E 3 0
OutPut Table
Engineer Name Project 1 Task Project 1 Task Delayed Project 2 Task Project 2 Task Delayed
A 3 0 7 2
B 4 1 6 1
C 1 0 0 0
D 4 2 0 0
E 1 0 3 0
Solved! Go to Solution.
Hi, @Anonymous ;
Such as yogesh14june said, you could merge in power query.
way 1. merge in power query.
way 2: create a new table by dax.
New table =
var _a=UNION(VALUES('Project 1'[Engineer Name]),VALUES('Project 2'[Engineer Name]))
return ADDCOLUMNS( SUMMARIZE(FILTER(_a,[Engineer Name]<>BLANK()),[Engineer Name]),
"Project 1 Task", CALCULATE(SUM('Project 1'[#Task Assigned ]),FILTER('Project 1',[Engineer Name]=EARLIER('Project 1'[Engineer Name]))),
"Project 1 Task Delayed", CALCULATE(SUM('Project 1'[#Task Assigned ]),FILTER('Project 1',[Engineer Name]=EARLIER('Project 1'[Engineer Name]))),
"Project 2 Task",CALCULATE(SUM('Project 2'[#Task Assigned]),FILTER('Project 2',[Engineer Name]=EARLIER('Project 1'[Engineer Name]))),
"Project 2 Task Delayed",CALCULATE(SUM('Project 2'[# Task Delayed]),FILTER('Project 2',[Engineer Name]=EARLIER('Project 1'[Engineer Name]))))
the final show:
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.
Hi, @Anonymous ;
Such as yogesh14june said, you could merge in power query.
way 1. merge in power query.
way 2: create a new table by dax.
New table =
var _a=UNION(VALUES('Project 1'[Engineer Name]),VALUES('Project 2'[Engineer Name]))
return ADDCOLUMNS( SUMMARIZE(FILTER(_a,[Engineer Name]<>BLANK()),[Engineer Name]),
"Project 1 Task", CALCULATE(SUM('Project 1'[#Task Assigned ]),FILTER('Project 1',[Engineer Name]=EARLIER('Project 1'[Engineer Name]))),
"Project 1 Task Delayed", CALCULATE(SUM('Project 1'[#Task Assigned ]),FILTER('Project 1',[Engineer Name]=EARLIER('Project 1'[Engineer Name]))),
"Project 2 Task",CALCULATE(SUM('Project 2'[#Task Assigned]),FILTER('Project 2',[Engineer Name]=EARLIER('Project 1'[Engineer Name]))),
"Project 2 Task Delayed",CALCULATE(SUM('Project 2'[# Task Delayed]),FILTER('Project 2',[Engineer Name]=EARLIER('Project 1'[Engineer Name]))))
the final show:
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.
You Can use merge queries from in power Query editor to unite the tables by the engineering names!
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 54 | |
| 37 | |
| 34 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 72 | |
| 72 | |
| 38 | |
| 35 | |
| 26 |