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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
mickey
Frequent Visitor

Create new table repeating dates for unique values of another field

Hi,

I created a table with the formula:

New Table =
    SUMMARIZECOLUMNS(
        'Date Table'[Date],
        Ward[Unique ID]
    )
 
This worked as intended as I need to create a new table with the dates repeated for each Ward Unique ID.
 
The problem I ran into was when trying to connect this table with the existing Date Table it turned up a circular dependencies in the relationship.
 
My thought are if I use a different calc for the date portion of my New Table such as CALENDAR(MIN('Date Table'[Date]), MAX('Date Table'[Date])) that should remove the circular dependency, I just don't know how to add back in the column which repeats the date range for each Ward Unique ID.
 
Thanks!
3 REPLIES 3
StefanoGrimaldi
Resident Rockstar
Resident Rockstar

you try with this approeach to see if it works for you: 

new table = ADDCOLUMNS( CALENDAR(MIN('Date Table'[Date]), MAX('Date Table'[Date])), "Ward Unique ID", Ward[Unique ID] )

basically you creating to table by separate and them merging them in this dax I think it should do the trick if I understand correctly. 

 

let me know to see further adjustments. 





Did I answer your question? Mark my post as a solution! / Did it help? Give some Kudos!

Proud to be a Super User!




HI @StefanoGrimaldi 

 

When I try that formula I am unable to add in the Ward[Unique ID] as no table dimensions or fields appear, only measures

mickey_0-1686181582353.png

 

you doble checked there its a column naed like that? 





Did I answer your question? Mark my post as a solution! / Did it help? Give some Kudos!

Proud to be a Super User!




Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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