The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
I need
I have input like the above image
and want output like below image using Dax measures
Thanks in advance
Solved! Go to Solution.
@somya_jain , in DAX you have use summarize and union
Try lik
SUMMARIZE(
Union(
selectcolumns(Table, "Team",Table[HomeTeam], "Goal",Table[Home Goal]),
selectcolumns(Table, "Team",Table[awayTeam], "Goal",Table[Away Goal])
),[Team] ,"Goal", sum([Goal]))
https://www.sqlbi.com/articles/from-sql-to-dax-joining-tables/
@somya_jain , in DAX you have use summarize and union
Try lik
SUMMARIZE(
Union(
selectcolumns(Table, "Team",Table[HomeTeam], "Goal",Table[Home Goal]),
selectcolumns(Table, "Team",Table[awayTeam], "Goal",Table[Away Goal])
),[Team] ,"Goal", sum([Goal]))
https://www.sqlbi.com/articles/from-sql-to-dax-joining-tables/
Hi,
You can use the "GroupBY" transformation in the query editor to get this output.
Appreciate a Kudos! 🙂
If this helps and resolves the issue, please mark it as a Solution! 🙂
Regards,
N V Durga Prasad
Thanks for your help but I was looking for solution using dax
User | Count |
---|---|
57 | |
54 | |
53 | |
48 | |
30 |
User | Count |
---|---|
177 | |
88 | |
70 | |
48 | |
48 |