Forum Discussion
MaloPBI
6 years agoRegular Visitor
Counter days by action
Hey everybody! I'm trying to solve this problems from two days ago and i cannot find the best solution. I have 2 tables: Dates and Actions I don't have a relationship...
- 6 years ago
Hi everyone,
I didn't find any possible solution with measures 😞 ... but i found a workaroud using calculated tables.
ActionsbyDate = SELECTCOLUMNS( FILTER( CROSSJOIN(Dates;Actions); Dates[Dates]>=Actions[StartDate] && Dates[Dates]<=Actions[EndDate] ); "Dates";Dates[Dates]; "NumMov";Actions[NumMov] )Then i can build this model
And now i can get the correct analysis:
DayValuesAction = COUNT(ActionsbyDate[Dates])If anyone knows how i can get that with measures i'd be great!
Thanks a lot.
Malo.
MaloPBI
6 years agoRegular Visitor
Hi everyone,
I share with you the .pbix and excel file in order to do it easy if you want to test something.
https://drive.google.com/open?id=1j3U8F96kPwYy4H03nGjnhdDZK-OrjdHQ
Thanks a lot.
Malo