Forum Discussion
DAX help needed
- 2 years ago
Hello Enam
Do you need a measure or it's ok a calculated column?
This is the formula for calculated column
Count of Activitys =
var _start = Classeur[Start_Date]var _end= Classeur[End_Date]var _mon= Classeur[Monday]RETURNCALCULATE(COUNT(Classeur[Activity]), all(Classeur),Classeur[Start_Date]<=_mon, Classeur[End_Date]>=_mon)Instead this could be your measureCount of Activities Measure =VAR _mon = SELECTEDVALUE(Classeur[Monday])RETURNCALCULATE(COUNT(Classeur[Activity]),ALL(Classeur),Classeur[Start_Date] <= _mon,Classeur[End_Date] >= _mon)
let me know 😉 - 2 years ago
I see. In that case I think you need to create another table, a Mondays table, use it in the column. I attach a sample pbix
I think like this can work but I don't know if it's a feasible solution for you. Let me know, maybe I can think of other solutions
Hello Enam
Do you need a measure or it's ok a calculated column?
This is the formula for calculated column
let me know 😉
Hello @Gabry , the total is ok but not the dispatch by Activity even with a slight change to the measure you kindly provided
- Gabry2 years agoSuper User
I see. In that case I think you need to create another table, a Mondays table, use it in the column. I attach a sample pbix
I think like this can work but I don't know if it's a feasible solution for you. Let me know, maybe I can think of other solutions