Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello guys,
This is my first project with PowerBI. here is my problem, I have two related tables as you can see below.
I want to make new measure to get total sales(ordval) from orders table per weekdays (wkd) from the datum table.
This is the formula
Solved! Go to Solution.
hi, @Anonymous
For your formula, GROUPBY (<table>, [<groupBy_columnName1>], [<name>, <expression>]… )
Group by returns a table with the selected columns for the groupBy_columnName arguments and the grouped by columns designated by the name arguments.
So it is used to create a new table, not a new measure.
https://docs.microsoft.com/en-us/dax/groupby-function-dax
For a measrue, you could just use this simple formula,
Measrue = CALCULATE(SUM(orders[ordval]))
Then drag datum[wkd] and this measure into a visual.
Best Regards,
Lin
hi, @Anonymous
For your formula, GROUPBY (<table>, [<groupBy_columnName1>], [<name>, <expression>]… )
Group by returns a table with the selected columns for the groupBy_columnName arguments and the grouped by columns designated by the name arguments.
So it is used to create a new table, not a new measure.
https://docs.microsoft.com/en-us/dax/groupby-function-dax
For a measrue, you could just use this simple formula,
Measrue = CALCULATE(SUM(orders[ordval]))
Then drag datum[wkd] and this measure into a visual.
Best Regards,
Lin
Thank you guys
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 39 | |
| 37 | |
| 29 | |
| 24 |
| User | Count |
|---|---|
| 118 | |
| 98 | |
| 70 | |
| 69 | |
| 65 |