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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Date Dimension, Filter based on matched dates in multiple dimension

Hi Guys,

 

We have below 4 tables

Dim.Date

    Date  -Column

Dim.Shipment

    ShipmentID  -Column

    ShipmentDate  -Column

    ShipmentTime  -Column

Dim.Order

   OrderID-Column

   OrderDate-Column

   OrderTime-Column

Dim.Time

   Time  -Column

 

We creatd report based on the tables mentioned above; Now we want to show date as filter; as my date dimesion have all the dates raning from 2000-21000; when we select the date from Dim.Date; it shows too many dates; We want to show only dates which match Order and Shipment and should be able to work for both; 

 

Issue 1: Dim Date as filter show all dates

Issue 2: Dim ShipmentDate as filter show only Shipment dates and visualize pertaining to order does not work

Issue 3: Dim OrderDate as filter show only ORderdates and visualize pertaining to Shipment does not work

 

Regards,

Navin

 

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

Why do you have dates going till year 2100?  Ideally the Date table should only have dates till the farthese date in your datasets.  Assuming the farthese date will be found in the OrderDate column, try this Table formula

Calendar = calendar(min(Shipment[ShipmentDate]),max(Order[OrderDate]))

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Date dimension not only used for shipment dates and order dates it used by other dimension too, some of the dimension have furture dates requirement; what if min and max dates dont match with each other?

Hi,

Please explore the Calendarauto() function.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

not working

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.