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
thmonte
Helper IV
Helper IV

Using Date to filter over multiple tables

I have multiple tables that all have date/time values for each row in the table.  I am looking to create a report and would like to be able to filter over date/time but I do not have a table of unique values to create a relationship from.  In addition I am using DirectQuery which does not allow me to create a summarized table of unique values.  Can anyone point me in the right direction?

 

Thanks in advance.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@thmonte

 

You can make a time dimension without using summarize. Try making a new table with this:

 

TimeDim = CALENDAR(FIRSTDATE(Table[Date]);LASTDATE(Table[Date])).

 

Then you can link your tables to this new table, and slice on that. Let me know how it goes.

 

Best,

Martin

View solution in original post

6 REPLIES 6
RR010
Regular Visitor

Hi Guys,

I've got a related question. I made a Date table which is working (well.. for most of the time) but I still have a problem. I'll post a print screen as well to show what is happening.
I have two tables, Actual Calls and Oppertunities, between these two I have small a Sales Rep table and a Date Table. When I make a report and filter bij Sales Rep it all works fine, when I try to filter by Date (the made date table) my Actual calls do filter but my Oppertunities dont.. I have no idea why..

Hope you can help! Thank you!

 

 

Example1.png

Anonymous
Not applicable

@thmonte

 

You can make a time dimension without using summarize. Try making a new table with this:

 

TimeDim = CALENDAR(FIRSTDATE(Table[Date]);LASTDATE(Table[Date])).

 

Then you can link your tables to this new table, and slice on that. Let me know how it goes.

 

Best,

Martin

8-8-2017 11-44-37 AM.png

 

Since I am using DirectQuery I am uanble to create a new table.

@thmonte,

You would need to create the summarized table that contains unique values in your source, and import the table to Power BI Desktop, then link your tables to the new table.


Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-yuezhe-msft

 

Thanks for the response.  I am going to work on pulling in a table of unique values of date to create a relationship.  Now I asked this in another thread and I haven't gotten a response but it is somewhat related.  I want to use the date slicer to bring in data based on a date range between the two date columns Start Date / End Date.  If you could take a look...

 

https://community.powerbi.com/t5/Desktop/Filtering-within-a-date-range/m-p/227773#M101499

@thmonte,

Since you have created another thread about the date range issue, please close this thread by marking approriate reply as answer. 

The date range issue will be handled by our support engineer in your another thread.

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.