Forum Discussion
hashemalrifai
10 years agoNew Member
Apply filter on one column [Beginner]
Hi, I'm an absolute beginner, and I have to ask after so many attempts. Let's assume that I have simple [Schools] and [Students] tables. Each student has a boolean flag column [IsActive]. And I'm ...
achinm45
Advocate IV
10 years agoSelect your visualization.
Go to Fields section (icon with 3 columns , next to paintbrush)
There from Values fields, remove the column
- hashemalrifai10 years agoNew Member
Thanks, achinm45 for answering, but I really need to have two columns, one for all students, and the other for [active] students.
In other words, I need two chart columns:
The first: All students
The seconds: All students WHERE IsActive = True
Thanks, and I hope that I explained better :)
- Anonymous10 years agoNot applicable
hashemalrifai This should return only those students that are active.
ActiveOnly = CALCULATE(SUM('Students'[IsActive]),FILTER('Students', 'Students'[IsActive]=1))