Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi Everyone!
I cannot figure out how to sum column Invoiced Quantity from Last Quarter Sales table into my Inventory table based on the ProductCode and LocationCode conditions
Currently I have:
I am not able to calculate the "Last Quarter Sales" column. Any tips? I have tried something like this:
Last Quarter Sales =
SUMX (FILTER (
LastQuarterSales,
LastQuarterSales[ProductCode] = Inventory[ProductCode]
&& LastQuarterSales[LocationCode] = Inventory[LocationCode]
),
LastQuarterSales[Invoiced Quantity]
)
But I had a circular dependency error.
Thanks.
Solved! Go to Solution.
Hello @AngelArteagaH
I created a new column on both tables which concatenates ProductCode and LocationCode.
The new column was created using Power Query.
Then Joined the tables on this column (1 to many relationship).
Finally I created a simple sum formula to get the last quarter sales.
PowerBI file attached
Hello @AngelArteagaH
I created a new column on both tables which concatenates ProductCode and LocationCode.
The new column was created using Power Query.
Then Joined the tables on this column (1 to many relationship).
Finally I created a simple sum formula to get the last quarter sales.
PowerBI file attached
Thanks, it works like a charm
User | Count |
---|---|
25 | |
10 | |
7 | |
6 | |
6 |
User | Count |
---|---|
30 | |
11 | |
11 | |
9 | |
7 |