Forum Discussion
Anonymous
7 years agoNot applicable
Getting wrong project dates when generating table...
Hello PBI community: I'm tracking revenue for projects over a few months; some projects generate revenue, and others stop (i.e., not cumulative total). I have a table that has one row for ea...
- 7 years ago
Hi Anonymous
Please check if below table matches your request.
Table = FILTER ( GENERATE ( SELECTCOLUMNS ( 'My Date Table', "My Date", 'My Date Table'[Date] ), Projects ), Projects[Est Start Date] <= [My Date] && Projects[Est End Date] >= [My Date] && DAY ( [My Date] ) = 1 )Regards,
Cherie
v-cherch-msft
Microsoft Employee
7 years agoHi Anonymous
Please check if below table matches your request.
Table =
FILTER (
GENERATE (
SELECTCOLUMNS ( 'My Date Table', "My Date", 'My Date Table'[Date] ),
Projects
),
Projects[Est Start Date] <= [My Date]
&& Projects[Est End Date] >= [My Date]
&& DAY ( [My Date] ) = 1
)
Regards,
Cherie
Anonymous
7 years agoNot applicable
Hey v-cherch-msft
Thanks for taking the time to reply. Your solution works. I'm posting both PBIX files--one with my solution & one with yours so people can see both.
ADDCOLUMNS / GENERATE / SELECTCOLUMNS solution
FILTER / GENERATE / SELECTCOLUMNS solution
Thanks so much.