Forum Discussion
Using Calculate function with two tables
- Anonymous2 years ago
Hi SS0101 ,
You can try the following measure:
Measure = var _select=SELECTEDVALUE('Calendar Table'[Date]) return COUNTX( FILTER(ALL('projects table'), _select>='projects table'[StartDate]&&_select<='projects table'[EndDate]),[project])Or add an ALL() function to the original Dax.
ALL function (DAX) - DAX | Microsoft Learn
If it doesn't meet your desired outcome, can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data. We can better understand the problem and help you.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi SS0101 ,
You can try the following measure:
Measure =
var _select=SELECTEDVALUE('Calendar Table'[Date])
return
COUNTX(
FILTER(ALL('projects table'),
_select>='projects table'[StartDate]&&_select<='projects table'[EndDate]),[project])
Or add an ALL() function to the original Dax.
ALL function (DAX) - DAX | Microsoft Learn
If it doesn't meet your desired outcome, can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data. We can better understand the problem and help you.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- SS01012 years agoNew Member
thanks Liu Yang!
that nearly solved my issues, however - In this setup, I can't use any slicer (doesn't have any effect). is it due to the ALL command? how can it be worked around?
thanks