Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I know I have fixed this issue before, but I am having a brain-dead morning and need help from one of you brilliant minds. I have a customer fact table and a sales table. The tables have an indirect relationship between customer id. Customer Name in the matrix is from the Customers fact table. I need to total the sales by customer in a matrix, but only completed sales. I added the column:
Completed Sales = IF([Sale Complete]="Yes", [Quantity], 0)
In my matrix, the grand total is displaying on every row, rather than the customer subtotals. Below is a mock-up. What am I doing wrong?
Solved! Go to Solution.
@Anonymous -
Ah, right - at first, I also thought, as @edhans mentioned, that Quantity was a measure, because of the way you wrote it initially. Below, the measure is updated.
Regarding Project Manager, I'm guessing that it also an Inactive Relationship? If so, you can apply the same pattern with USERELATIONSHIP.
Completed Sales = CALCULATE( SUM(Sales[Quantity]), USERELATIONSHIP(Sales[Customer Id],'Customer'[Customer Id]), Sales[Sale Complete]="Yes" )
Cheers,
Nathan
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
93 | |
77 | |
65 | |
53 |
User | Count |
---|---|
147 | |
106 | |
104 | |
87 | |
61 |