Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hello everyone
Sorry, I couldn't paste the actual table. my data looks like this:
and I'd like to rephrase it to this:
I tried Unpivote in power query and managed to get the Employee and Serial right but for getting the values for Task1_hour and Task2_hour I tried merging the main table and the unpivoted table on Serial and Employee=Task1_employee but it gives me the redundant value for the employees that are common in those two columns. so I get this:
Thanks in advance for your help.
@Mosijoon , Create a common dimension employee
Employee= distinct(union(distinct(Table1[Employee]),distinct(Table1[Task2_Employee])))
Then join with both employee and Task2_Employee , assume join with Task2_Employee is inactive
M1= Sum(Table1[Task1_hour])
M2= calculate(Sum(Table1[Task1_hour]) , userelationship(Employee[Employee], Table1[Task2_Employee]) )
you can use these two measures with common employee dim and other columns
Thank you for your reply. It works when you only want the total sum value but I still have a problem with slicers and tables. it only brings employees from the active relationship (to select in the slicer or as the first column in tables). is there a way around that? something like userelationship for slicers?
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 |
|---|---|
| 49 | |
| 44 | |
| 42 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 73 | |
| 71 | |
| 34 | |
| 33 | |
| 31 |