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
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
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.