Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I have informations from two different tables combined on the same visual table using measures.
I'm using a slicer to filter informations from both original tables based on a date column.
What I did to get the filter working was to create a third table with a date column and create a relationship between this date column with date column from the other two tables.
The filter is working well, filtering start and end date from both tables.
My problem is that for the first table I need to filter just the end date, so I get cumulative value from column "Information". And for the second table I need to filter all the period (start and end date).
Example:
Table 1: Need to filter just the end date
Date | Information | Category |
11/10/2022 | 1 | a |
11/12/2022 | 2 | a |
11/14/2022 | 3 | a |
11/15/2022 | 4 | a |
Table 2: Need to filter both start and end date
Date | Information | Category |
11/12/2022 | 1 | a |
11/14/2022 | 2 | a |
11/15/2022 | 3 | a |
11/16/2022 | 4 | a |
Supposing I have a count and a sum measure for Information column, on the visual table I should get the below, if I set this period on the slicer filter: 11/14/2022 to 11/15/2022
Category | Count of Information | Sum of Information |
a | 5 | 11 |
Basically, for Table 1 the period should be 11/10/2022 to 11/15/2022 and for Table 2 should be 11/14/2022 to 11/15/2022.
Is that possible using the same slicer filter?
Thank you!
Solved! Go to Solution.
@Anonymous You could use a similar method to what I did here: https://excelwithallison.blogspot.com/2021/08/categorical-date-slicer-in-power-bi.html by creating a measure that you can add as a visual filter to the table. You'll need to make sure your date in the slicer is NOT related to the data in the table for that method to work.
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
@Anonymous You could use a similar method to what I did here: https://excelwithallison.blogspot.com/2021/08/categorical-date-slicer-in-power-bi.html by creating a measure that you can add as a visual filter to the table. You'll need to make sure your date in the slicer is NOT related to the data in the table for that method to work.
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
Thank you so much @AllisonKennedy !!
I didn't think about using filtered data from slicer on the measures.
Basically I've created my measures (sum and count) without date filter for the Table 2 (so it was filtered directly by slicer filter) and with filter for Table 1. Then created a relationship between date column of Table 2 table and date column of my Date Table. Also I've deleted Table 1 date column relationship with Date Table so it was filtered by the measure.
For those who need a hint:
Step 1:
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
59 | |
53 | |
52 | |
36 | |
33 |
User | Count |
---|---|
80 | |
73 | |
45 | |
45 | |
43 |