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
Krunoslav123
Regular Visitor

Inner Join

I have simple problem with inner join in Power BI Desktop . My problem is realted to this problem http://stackoverflow.com/questions/20790681/split-range-of-dates-into-individual-records-keeping-ids

I successfully managed to solve the problem with a SQL query but a major problem is that performance of this query is executed very slowly. Now i'm trying to find a solution within the power bi desktop but unsuccessfully. 

 

Here is my sample data 

DateTimeFromDateTimeToNameValue
3.1.2016 22:004.1.2016 1:0010,33
4.1.2016 2:004.1.2016 3:0010,44
3.1.2016 23:004.1.2016 2:0021,22

 

and here is Expected results

 

 

NameDateTimeValue
13.1.2016 22:000,33
13.1.2016 23:000,33
14.1.2016 0:000,33
14.1.2016 1:000,33
14.1.2016 2:000,44
14.1.2016 3:000,44
23.1.2016 23:001,22
24.1.2016 0:001,22
24.1.2016 1:001,22
24.1.2016 2:001,22

 

I also have DimDateTime with generated all values .

1 ACCEPTED SOLUTION
Krunoslav123
Regular Visitor

OK i think that i found sollution : 

 

Crate table : 

 

Inner_Join = FILTER (
CROSSJOIN ( 'DimDateTime'; sample data  );
'DimDateTime'[DateTime]>='sample data'[DatumOdMRound] && 'DimDateTime'[DateTime] < 'sample data'[DatumDoMRound]
)

View solution in original post

1 REPLY 1
Krunoslav123
Regular Visitor

OK i think that i found sollution : 

 

Crate table : 

 

Inner_Join = FILTER (
CROSSJOIN ( 'DimDateTime'; sample data  );
'DimDateTime'[DateTime]>='sample data'[DatumOdMRound] && 'DimDateTime'[DateTime] < 'sample data'[DatumDoMRound]
)

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.