March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hye,
I am wondering about one question concerning the filters and the slicer.
I have 2 fact tables "Fruit" and "Supplier". The slicer is based on the fact table "Fruit" and I want that the selections (multiple or single) done in the slicer must impact also the fact table "Supplier".
I think it is possible only with the DAX function but I do not know how to do ? Can you help me?
Thank you.
There is a sample :
Solved! Go to Solution.
Try creating a new table with year and Month columns and related to both fact tables.
Hi @Orion,
As Vvelarde's point of view, create a calendar table based on these tables' date filed,for example:
DateTable = CALENDAR(MIN(VALUES(Table1[Date]),VALUES(Table2[Date])),MAX(VALUES(Table1[Date]),VALUES(Table2[Date])))
Then create the relationship between datetable and above tables, use the date field which in the calendar table as the source of slicer.
Regards,
Xiaoxin Sheng
So, if there is no relationship between your two tables, how do you propose having the filter affect an unrelated table? Are you saying that if you select a Fruit for year 2001, month 2 that you only want to show Suppliers from that year and month? If that is the case, combine your Year and Month fields in both tables into a new field and then create a relationship between them. I'll test to see if it works if that is what you are wanting to do.
thank you for your answer.
So, if there is no relationship between your two tables, how do you propose having the filter affect an unrelated table? Are you saying that if you select a Fruit for year 2001, month 2 that you only want to show Suppliers from that year and month?
YES
If that is the case, combine your Year and Month fields in both tables into a new field and then create a relationship between them. I'll test to see if it works if that is what you are wanting to do.
my case is more complicated I tried ti simplify in my sample.
I cannot created relation between the two fact tables because there are n:n cardinality.
Hi @Orion,
As Vvelarde's point of view, create a calendar table based on these tables' date filed,for example:
DateTable = CALENDAR(MIN(VALUES(Table1[Date]),VALUES(Table2[Date])),MAX(VALUES(Table1[Date]),VALUES(Table2[Date])))
Then create the relationship between datetable and above tables, use the date field which in the calendar table as the source of slicer.
Regards,
Xiaoxin Sheng
Thank you for your response
Try creating a new table with year and Month columns and related to both fact tables.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
129 | |
90 | |
75 | |
58 | |
53 |
User | Count |
---|---|
200 | |
104 | |
101 | |
67 | |
55 |