Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I have 2 tables 1:many
The sales table which only has the units sold... so each row counts as a sale... the sales table doesn't have a quantity column
My product table has the product key which exist in the sales table as well
I want to count the number of units per product key and then multiply it by the price of each product key from my product table
Doing the total sales by unit must be done with count as I can't use sum
I can get the count but am struggling to get the revenue with the multiply
Solved! Go to Solution.
Try this
SUMX(productsTable,productsTable[price] * CALCULATE(COUNTROWS(SalesTable)))
@JimmyHussein , Try like
sumx(summarize(product, "_1",calcuate(sum(sales[quantity])) , "_2",calcuate(sum(product[price]))), [_1]*[_2])
=sumx(producttable,producttable[price]*calcuate(sum(salestable[quantity])))
Try this
SUMX(productsTable,productsTable[price] * CALCULATE(COUNTROWS(SalesTable)))
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
10 | |
10 | |
9 | |
8 |
User | Count |
---|---|
17 | |
13 | |
12 | |
11 | |
8 |