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!View all the Fabric Data Days sessions on demand. View schedule
Hi,
How do i get the total Sales for each row. I used this measure
and it gives me the total of one row (Sales) and it puts it across all rows
I want to get the total of a column per row per month
Try something like this:
Column 2 =
VAR SalesMonth =
MONTH ( Sales[Order Date] )
VAR Result =
CALCULATE (
[Total Sales],
FILTER ( Dates, Dates[Month Number] = SalesMonth ),
ALL ( Sales )
)
RETURN
ResultThe below image is from my sales table which has one to many relationship with dates. you can see that all the rows that are for same month have the same value.
the amount in the above 2 pictures can be verified by the below one. by using a measure like
Total Sales = SUMX ( Sales, Sales[Quantity] * Sales[Net Price] )I'd need more to understand what you mean by total sales per row. It appears you already have a sales column on the left of your measure. I can tell you that using ALL() is going to remove the filters, and that is why you are getting the grand total on every row. ALL is ignoring the filters on that table, and for each cell is repeating the act of summing all the dollars available in the column.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 13 | |
| 9 | |
| 9 | |
| 5 | |
| 3 |
| User | Count |
|---|---|
| 28 | |
| 20 | |
| 19 | |
| 19 | |
| 12 |