Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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
Sales | Amount | Date |
Apple | 50 | 02 March 2017 |
Orange | 100 | 30 June 2018 |
Watermelon | 20 | 30 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:
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.
Solved! Go to Solution.
Hi @Anonymous ,
Create a new table=
Calendar Table= DISTINCT(SELECTCOLUMNS(Main_Table,"Date",Main Table[Date]))
Hope this helps!
Hi @Anonymous ,
Create a new table=
Calendar Table= DISTINCT(SELECTCOLUMNS(Main_Table,"Date",Main Table[Date]))
Hope this helps!
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
22 | |
7 | |
6 | |
6 | |
6 |
User | Count |
---|---|
27 | |
10 | |
10 | |
9 | |
6 |