So I need to create a virtual Table where I add a column with the total days for each project, something along these lines:
var virtual table: ADDCOLUMNS(Project Table, "@Total Days", Countrows(datesbetween(Dates, Selectedvalue(Beginning Date),Selectedvalue( End date),)
Then I want to sum the newly virtual column, that in this particular case would be 5+10 = 15,
I tried with a variable "current_project" to make the Datesbetween work, and get the total days for each project row by row. But the measure does not work in the totals, and in the charts only works If I place "Project" as legend.... If I do not filter per project, it does not work.