Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Daniel_B
Helper II
Helper II

Adding date calendar to allow filter/slicer to be applied to 1 visual using 2 tables

Howdy

 

I have 2 tables each with a column "Date" which are formatted exactly the same but may have different values in them depending on when the row data was collected

 

From each table, I have created the necessary measures to get the calculations I want but as my date columns are in the 2 tables I can only filter one set of data

 

I've tried linking the relationship between the date fields but that didn't work (probably because I'm not proficient in that linkages) and I've tried the basics of simply applying it to the page as opposed to the visualisation but still only 1 works

 

If it is related to the relationship, could someone help me understand which link I should use and why or if I need to create a new calendar table (which I know how to do) what would be the next steps to get a single date filter for all of my measures?

 

Thanks again

1 ACCEPTED SOLUTION
Tad17
Solution Sage
Solution Sage

Go to "Edit Queries"

Right click on each query and select reference

for each, highlight your "date" column and then select "Remove Other Columns"

Then append one query to the other

Then select remove duplicates

Then right click on the query reference that was appended to the other one and disbale "Enable load"

Then create a relationship between the new query and your two original queries.

 

This will give you a table that just has one instance of all of the dates contained in the other two tables and it will update whenever your queries update.

 

If you have problems getting them to relate make sure the column titles are identical (you can do this in the Query editor) 

 

 

View solution in original post

2 REPLIES 2
Tad17
Solution Sage
Solution Sage

Go to "Edit Queries"

Right click on each query and select reference

for each, highlight your "date" column and then select "Remove Other Columns"

Then append one query to the other

Then select remove duplicates

Then right click on the query reference that was appended to the other one and disbale "Enable load"

Then create a relationship between the new query and your two original queries.

 

This will give you a table that just has one instance of all of the dates contained in the other two tables and it will update whenever your queries update.

 

If you have problems getting them to relate make sure the column titles are identical (you can do this in the Query editor) 

 

 

judspud
Solution Supplier
Solution Supplier

Hi @Daniel_B 

 

I would recommend creating a date table within your data model. This will allow you to filter both of your tables by one field. It will also mean any additional tables you add can also be filtered by the date.

 

Once you have created the Date table in your model, create the relationships to the other tables and then use the Date field from your new Date table in the slicer to filter.

 

Hope this helps

 

Thanks,

George

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.