Forum Discussion
Power Query to DAX
I have the following Power Query that works fine in a normal table.
But now i want to use the same formule in a DAX table but thats not possible for so far i know.
So the question is can somebody help me by writing the formule in DAX?
9 Replies
- amitchandakSuper User
icturion ,Can you share sample data and sample output in table format?
- icturionResolver II
amitchandak
Sample data tabel1Result tabel2:
- amitchandakSuper User
icturion , Try like
Summarize(
union(
selectcolumns(Table, "Date", Table[datein], "Work1", [Work1], "Work2", 0, , "Work3", 0),
selectcolumns(Table, "Date", Table[dateout], "Work1", 0, "Work2", [Work2] , "Work3", 0),
selectcolumns(Table, "Date", Table[datecheck], "Work1", 0, "Work2", 0 , "Work3", [Work3])
), [Date], "Work1", sum([Work1]), "Work2", sum([Work2]), "Work3", sum([Work3]), "Total", sum([Work1])+sum([Work2])+sum([Work3]))- icturionResolver II
Where do i need to place the formula?
Within tabel1? As a Calculated column or measure?
If i place it in a measure i get the following error:
Can't find table with column [work1]
- amitchandakSuper User
icturion , that is new table