Forum Discussion
New Column with value of another table based on a date range from date in initial table
- 8 years ago
Hi CPaceFOTL,
Try out this formula please.
Column = VAR temp = CALCULATE ( SUM ( Table1[Daily_Cost] ), FILTER ( Table1, 'Table1'[Start] <= [CreatedDate] && 'Table1'[End] >= [CreatedDate] ) ) RETURN IF ( ISBLANK ( temp ), CALCULATE ( SUM ( Table1[Daily_Cost] ), 'Table1'[End] = BLANK () ), temp )Best Regards,
Dale
- 8 years ago
Hi v-jiascu-msft,
It has a lot of data and very large file with some data that is not sharable; however, I think I see why it is returning blanks. From some reason, in the data view that table is empty with 0 rows. This is a manually created table to maintain these values while in query editor. Trying to see why it is not building the data.
Craig Pace
- CPaceFOTL8 years agoFrequent Visitor
Hi v-jiascu-msft,
Thank you very much for your help on this. I had marked the table has not to load from the query editor and when I turned it back on, it actually did not load any data until I added a new row to the table. I now have it loaded correctly (Just hidden from report view since I don't want that data seen) and it is correctly filling my column as desired.
Craig Pace