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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.