Forum Discussion
Filtering two fact tables without changing crossfilter-direction
Hello community,
I have 2 fact-tables:
- Fact_Reclamations
- Fact_Orders
And I have 1 dimension:
- Dim_Articles
Look at this picture:
Both fact-tables are related with the dimension-table:
If I now select Reason for complaint "A", I want to see the Fact_Orders filterd on the articles 4711 and 4712 (because "A" is assigned to 4711 and 4712 in Fact_Reclamations).
And if I filter on Reason for complaint "B", I want to see this:
How can I do that without setting the crossfilter-direction on both?
With best regards,
Jan
Jan_Trummel you can use CROSSFILTER function in your DAX measure to make it work.
Measure = CALCULATE ( SUM ( FactTableOrders[Amount] ), CROSSFILTER ( FactTableReclaim[Article], DimArticle[Article], Both ) )Follow us on LinkedIn and to our YouTube channel
Learn about conditional formatting at Microsoft Reactor
My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.
3 Replies
- parry2kSuper User
Jan_Trummel you can use CROSSFILTER function in your DAX measure to make it work.
Measure = CALCULATE ( SUM ( FactTableOrders[Amount] ), CROSSFILTER ( FactTableReclaim[Article], DimArticle[Article], Both ) )Follow us on LinkedIn and to our YouTube channel
Learn about conditional formatting at Microsoft Reactor
My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.
- Jan_TrummelHelper IV
Thank you parry2k, that solved my problem!
- parry2kSuper User
Jan_Trummel awsome, good to hear. cheers!!
Follow us on LinkedIn and to our YouTube channel
Learn about conditional formatting at Microsoft Reactor
My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.