Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello!
I'm struggling with using common filters for multiple tables.
I'm currently working with 3 tables, they all have the following format:
Id | Date | Location |
1 | D1 | A |
2 | D2 | A |
3 | D3 | B |
4 | D4 | B |
5 | D5 | C |
6 | D6 | D |
I need to make multiple visualizations with options to filter via Location and Date
My 1st attempt was to create a composite key of Date + Location, attached to a Location table that I'll use for the Location filtering, and a Date table that I'll use for Date Filtering. Something like this:
However the filter is not working as it should, and many records are missing in my visualizations.
My 2nd attempt was to join the 3 tables, since the IDs and locations are the same for all 3 tables, with 3 distinct dates for each pair:
Id | Date1 | Date2 | Date3 | Location |
1 | D1 | D2 | D3 | a |
2 | D4 | D5 | D6 | b |
3 | D7 | D8 | D9 | a |
4 | D10 | D11 | D12 | b |
5 | D13 | D14 | D15 | c |
But that only allows me to use date filtering on one of the 3 dates, and I need to filter the 3 of them independently. I can only have one active relationship with my Date table at all times, and that is getting in the way.
Every date associated with an ID means a different phase in my context, and my visualizations need to count the number of IDs on that each phase on each period.
How can I do this?
Thank you for the help.
@Anonymous not sure why you have [date location] bridge table in between, just connect all your 3 tables directly wiht location and date, and filtering location and date will filter all these 3 tables.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
115 | |
100 | |
88 | |
68 | |
61 |
User | Count |
---|---|
150 | |
120 | |
100 | |
87 | |
68 |