Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hello,
I have two power bi dax tables.
I need to create a table visual. In which the first column is 'Sales Orders'[Sales Order], the second column is 'WiPJobs'[Job].
I cannot create new caculated tables, calculated columns or relationship between these tables.
I tried to use lookup and selected value functions, but there are several 'WiPJobs'[Job] for one 'Sales Orders'[Sales Order].
Could you please advise any solution. Thank you.
Here is pbix file, on my Onedrive sample.pbix
or codes
SalesOrders = DATATABLE(
"Sales Order",STRING,
{
{"A"},
{"B"},
{"C"},
{"D"}
}
)
WIPJobs = DATATABLE(
"Sales Order",STRING, "Job",STRING,
{
{"A","A1"},
{"A","A2"},
{"B","B1"},
{"C","C1"},
{"C","C2"},
{"C","C3"},
{"D","D1"}
})
Solved! Go to Solution.
@OlegV Try:
Measure =
VAR __SO = MAX('SalesOrders'[SalesOrder])
VAR __Result = CONCATENATEX( FILTER( 'WIPjobs', [SalesOrder] = __SO ), [Job], ", " )
RETURN
__Result
Hi @OlegV ,
Thank you @Greg_Deckler for the quick response and solution. In addition to creating a measure, we can also create a new table.
NewTable =
ADDCOLUMNS (
'SalesOrders',
"Job",
CONCATENATEX (
FILTER ( 'WIPJobs', [Sales Order] = EARLIER ( 'SalesOrders'[Sales Order] ) ),
[Job],
","
)
)
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @OlegV ,
Thank you @Greg_Deckler for the quick response and solution. In addition to creating a measure, we can also create a new table.
NewTable =
ADDCOLUMNS (
'SalesOrders',
"Job",
CONCATENATEX (
FILTER ( 'WIPJobs', [Sales Order] = EARLIER ( 'SalesOrders'[Sales Order] ) ),
[Job],
","
)
)
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@OlegV Try:
Measure =
VAR __SO = MAX('SalesOrders'[SalesOrder])
VAR __Result = CONCATENATEX( FILTER( 'WIPjobs', [SalesOrder] = __SO ), [Job], ", " )
RETURN
__Result
User | Count |
---|---|
95 | |
86 | |
78 | |
72 | |
67 |
User | Count |
---|---|
110 | |
104 | |
84 | |
65 | |
63 |