Forum Discussion
grouping using dax
Hi Experts,
So i have a few tables that i want to group by using Dax because i cant do it in query as there is 1 mesure column that i want to use and cant be found when im in power query.
I have Ldet(3) that i want to group by with BR and Chassis and Use the other table which is BR to sum everything by measure "Total Lab$" that i created already .
I have this formula but its wrong 😞 :
need help pls. Prefer to have an outcome in .pbix 😞
4 Replies
- v-joesh-msftSolution Sage
Hi Anonymous ,
I'm a little confused by your description,.First, you need to know that the GROUPBY function returns a table, so when you use GROUPBY, you create a table.
In addition, the table "Ldet" and the table Supplies/Lab do not seem to have a relationship, so you can't get the correct value you want. Could you share your expected output, it would help tremendously.Best Regards,
Community Support Team _ Joey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.- AnonymousNot applicable
Hi here's the link (i will just delete it later on)
I'm using the page 2 and page 1
So my outcome (so that it wont be confusing) that i want is :
From table "LDet3" get the BR and Chassis sum them all up by the measure that i created which is "total lab$".
Note that "total lab$" is from another table which is "BR"
Thank u for helping.- v-joesh-msftSolution Sage
Hi Anonymous ,
I guess if you are expecting this result:
Create a new table and use the GROUPBY formula:
Table = GROUPBY(LDet,LDet[BR],LDet[Chassis],"Labour",SUMX( CURRENTGROUP(), LDet[Lab]+ LDet[Supply]) )Here is a demo, please try it:
Best Regards,
Community Support Team _ Joey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.