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
sonuojha1
Helper IV
Helper IV

Date Issue

Dear All,

 

I have a sample data model with 3 tables, Date dimension, and two other transaction tables.

 

I am not able to see data from date dimension as below , if i select joined columns from both tables.

 

date_issue.png

 

I have attached the sample pbix file.

 

https://drive.google.com/file/d/1orRByhaVHd7kQxqHgwHfhBgC5RNCtl4g/view?usp=sharing 

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@sonuojha1 . close time has a timestamp. I create a date from this and then joined on that. Please find the file after signature

 

View solution in original post

4 REPLIES 4
v-lionel-msft
Community Support
Community Support

Hi @sonuojha1 ,

 

The purpose of creating this calculated column is to remove the timestamp.

v-lionel-msft_0-1605252722597.png

v-lionel-msft_1-1605252787835.png

You can also directly delete the timestamp of [CLOSE_TIME] in ‘Edit Query’.

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

amitchandak
Super User
Super User

@sonuojha1 . close time has a timestamp. I create a date from this and then joined on that. Please find the file after signature

 

Why do we need new calculated column as
date(year([CLOSE_TIME]),month([CLOSE_TIME]),DAY([CLOSE_TIME])), however we have date column already in table?

What if we have multiple date columns, then it shouldn't be a good practice to recreate the date columns on top of existing date columns.

Best Regards,
Sonu

@amitchandak 

Thanks for reply,

 

Yes, it has timestamp in data, however I converted the data type from date time to Date. So as I understood, we have to remove timestamp from power query itself instead changing type in "Data" tab. Correct?

 

I appreciate your help.

 

 

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.