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.
I have a fact table and a dimension in my model in Power BI :
ShipmentID SendingAgentCode ReceivingAgentCode
1000 12 13
1001 14 15
My model is like below :
I want to have two filters one for Receiving Agents and one for Sending Agents. How can I achieve that?
Also, I want to calculate the number of shipments for Receiving/Sending Agents separetly.
This is what I tried :
Solved! Go to Solution.
I ended up creating a separate table :
DimSendingAgent = ALL (DimAgent)
And then created the missing relationship to this new table. This is a common practice for relatively small tables using Power BI.
I ended up creating a separate table :
DimSendingAgent = ALL (DimAgent)
And then created the missing relationship to this new table. This is a common practice for relatively small tables using Power BI.
Hi, @amirabedhiafi
Please correct me if I wrongly understand your question.
In my opinion, please try to create two relationship lines inactive.
And when you create measures, you can use userelationship function in your measure to calculate per SendingAgent or per ReceivingAgent.
If it is OK with you, please share the sample pbix file, then I can look into it to come up with a more accurate solution.
Thank you.
Jihwan Kim
If this post helps, then please consider accept it as the solution to help the other members find it more quickly.
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
I already created two inactive relationships. I can't share the pbix file since it is containing sensitive data.
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 |
---|---|
124 | |
79 | |
50 | |
38 | |
38 |
User | Count |
---|---|
196 | |
80 | |
70 | |
51 | |
42 |