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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
Anonymous
Not applicable

Dim_Date join with multiple fact date column

Hi All,

 

I have 3 tables 

 

Dim_date (datetime)

Fact1 (datetime)

Facts 2(datetime)

 

RealtionShip

Fact1 (datetime) 1:M Dim_date (datetime) Crossfilter direction (BOTH) and Active/ Fact2 (datetime) 1:M Dim_date (datetime) Crossfilter direction (BOTH) and realtionship Active , result i get in pic 1 if i make relationship inactive then i get the result in pic 2

 

Capture.JPG

How to resolve this please help

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

Not clear. But make sure that both table are joined on Date column with date table having no time. Also, all dates are cover in date dimension

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

8 REPLIES 8
v-kelly-msft
Community Support
Community Support

Hi @Anonymous ,

 

You can use "userelationship" function when you make one of the relationship inactive.

 

Here is the reference.

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
Anonymous
Not applicable

But i want to show Date table - Hour, Fact1 - Count(custid), fact2(salesamt) in same graph

Hi @Anonymous ,

 

Can you show me your .pbix file if it's not confidential?You can upload it to onedrive then share the link  to me.

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
Anonymous
Not applicable

@v-kelly-msft  Thanks much in advance ,

 

https://1drv.ms/u/s!ApPgrUdbr1NBbT4-UdfcQufC8Iw?e=SWehbd

 

if i select any col and walkin from line.my sales,transaction should split based on hour,day so on

 

as of now day is coming correct sales=140 and walkin=40 and transaction=52,but line should not be extended, hour wise how to do i dnt have nay ideal. please please help

amitchandak
Super User
Super User

Not clear. But make sure that both table are joined on Date column with date table having no time. Also, all dates are cover in date dimension

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
Anonymous
Not applicable

understood now. created calendar and hour table and joined the timestamp with facts

Anonymous
Not applicable

if i dnt join on datetime, how can i extract hourly data

Anonymous
Not applicable

Best practices want the Dim_Date to be a list of distinct days with no gaps, with no time.

In this way you will be able to use it as a calendar table for your model and to use all the Time Intelligence functions.

In your fact you should calculate the date and link it the Dim_Date with a 1:M relationship that goes from Dim_Date to Fact.

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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