Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hey,
im facing the problem with passing values between two tables in many to many relationship (product to product).
Table1:
Table 2:
What im trying to do is to create a calculated column in Table 1 that will show Sum of sales for specific product but only once.
Expected result:
already played with sumx function in different ways, but it always replicate my results for each of three rows in that example.
Im woundering if that expected output is even possible to create.
Thanks in advance for any guidence
Solved! Go to Solution.
Hi @STRUSINIO ,
Your expected result is blank, so i just could give solution according to your description.
Please try to create a calculate column with below dax formula:
Column =
VAR _a = [Product]
VAR tmp =
FILTER ( ALL ( Table2 ), [Product] = _a )
RETURN
SUMX ( tmp, [Sales] )
Please refer the attached .pbix file.
Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @STRUSINIO ,
Your expected result is blank, so i just could give solution according to your description.
Please try to create a calculate column with below dax formula:
Column =
VAR _a = [Product]
VAR tmp =
FILTER ( ALL ( Table2 ), [Product] = _a )
RETURN
SUMX ( tmp, [Sales] )
Please refer the attached .pbix file.
Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 |
---|---|
15 | |
10 | |
10 | |
10 | |
10 |
User | Count |
---|---|
19 | |
14 | |
13 | |
11 | |
8 |