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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Create new table with one column that only consist of dates that exist in another table

Hi,

 

I am trying to create a new table in the data section of Power BI which only has 1 column called Date.

And this Date will only consist of dates from another main table which consist of several random dates. 

May I know how do I do this?

Below is an illustration of what I'm trying to achieve:-

 

Main table

SalesAmountDate
Apple5002 March 2017
Orange10030 June 2018
Watermelon2030 June 2018

 

 

Create a new table that looks like this and contains only these 2 unique dates:

 

Date
02 March 2017
30 June 2018

 

I did try using this DAX: 

Date =
RELATED(Main Table[Date])

but the error message says The column 'Main Table[Date]' either doesn't exist or doesn't have a relationship to any table available in the current context.

So when I tried to form a relationship between Main Table and New Table using One to One cardiniality, the error message says the cardiniality you selected isn't valid for this relationship.


1 ACCEPTED SOLUTION
Tanushree_Kapse
Impactful Individual
Impactful Individual

Hi @Anonymous ,
Create a new table= 
Calendar Table= DISTINCT(SELECTCOLUMNS(Main_Table,"Date",Main Table[Date]))

Hope this helps!

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@Tanushree_Kapse 

Thanks! This works! Thank you so much for helping! 

Tanushree_Kapse
Impactful Individual
Impactful Individual

Hi @Anonymous ,
Create a new table= 
Calendar Table= DISTINCT(SELECTCOLUMNS(Main_Table,"Date",Main Table[Date]))

Hope this helps!

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.