Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
Let's say I have these 3 tables:
Article
ArticleSecondary
This table is the link between a Primary Article with zero, one or more Secondary Articles. We use this table to define alternatives for our main choice of articles.
Orders
I have defined the following relationships:
Relationships:
My goal is to create a table visual with 3 columns:
I get stuck with the quantity for the secondary articles. This column is empty and I suspect that it has to do with the fact that Orders is already filtered by ArticleId from the Articles table.
Any tips on how I can get the correct order quantities for the secondary articles?
Solved! Go to Solution.
Hi @markblom
please try
Quantity Ordered For Secondary Article =
CALCULATE (
SUM ( Orders[Quantity] ),
USERELATIONSHIP ( ArticleSecundary[SecondaryArticleId], Orders[ArticleId] ),
CROSSFILTER ( Article[ArticleId], Orders[ArticleId], NONE )
)
Hi @markblom
please try
Quantity Ordered For Secondary Article =
CALCULATE (
SUM ( Orders[Quantity] ),
USERELATIONSHIP ( ArticleSecundary[SecondaryArticleId], Orders[ArticleId] ),
CROSSFILTER ( Article[ArticleId], Orders[ArticleId], NONE )
)
This is working for me, thanks!!!
One minor issue though:
First row contains a value for Secondary orders quantity but no ArticleCode. Any idea what is causing this?
@markblom
Power Bi automatically creates a blank row to group the quanities that do not belong to any secondary id. Just filter out the blank row using the filter pane.
@markblom , this is creating loop. You should not join
Article.ArticleId -> ArticleSecunday.PrimaryArticleId
In case you want to filter the slicer of ArticleSecunday , you can try
How to filter the slicer of a disconnected table: https://youtu.be/cV5WfaQt6C8
https://www.youtube.com/watch?v=cyOquvfhzNM
Thanks for the reply! I will have a look at the youtube movies in your links.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
15 | |
10 | |
9 | |
8 | |
6 |
User | Count |
---|---|
14 | |
12 | |
12 | |
11 | |
10 |