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
Anonymous
Not applicable

Issue with Date

Hi Experts,

 

I have two table sales fact and column name is  timestampUTC  and Day table is date dim table. I have created Date dim (day,month,year) table by using timestampUTC column from sales fact, if i am trying to select DAY from date dim table i should get only 28mmyy.... from fact table , but i am getting all the dates from fact table (timestamputc column). hpw to resolve it . please help

 

Capture.JPG

1 ACCEPTED SOLUTION

What kind of join these two table have.

put both time stamp in table with this option on date dimension and check how many null you have

ShowItemwithoutdata.JPG

View solution in original post

5 REPLIES 5
amitchandak
Super User
Super User

You have time stamp in fact date.

Create a date column and join it with date dimension

 

date = Table[Timestamp].date

OR

date = date(year(Table[Timestamp]),month(Table[Timestamp]),day(Table[Timestamp]))

Anonymous
Not applicable

sorry i didnt understand.

 

i have created date column in data table by using fact.timestamp

 

 

Date table--> CALDate = ALLNOBLANKROW(Sales[timestampUTC])
 
my report is based on hour,day, week and month. so i need timestamp as well in both the tables

What kind of join these two table have.

put both time stamp in table with this option on date dimension and check how many null you have

ShowItemwithoutdata.JPG

Anonymous
Not applicable

I am able to join only one fact table.

 

table with col

date table = ddmmyyyhhmm

sales facts = ddmmyyyhhmm

Target facts=ddmmyyyhhmm

 

joins

date table1:M sales facts (both)

 

now i need to join date table to target table  if i do same join as i did with sales facts its not working

 

 

 

 

 

 

Hi @Anonymous ,

 

Please try to create calculated columns in two tables to get "day", and establish a relationship for two tables based on these two columns.

 

Best Regards,
Liang
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.