Forum Discussion
cmpbn
2 years agoNew Member
Filter columns from two or more tables
I have two tables Employee and Department, and the common column is deptno. I have been trying to calculate the number of employees from deptno 20 whose earns more than 550. I palyed with the FILTE...
- 2 years ago
cmpbn
Create a lookup column and use it to filter EMP table. I have updated the PBIX with altered solution.
Does this help?
If this post helps, then please consider Accept it as the solution to help the others find it more quickly. Appreciate you kudos!!
Follow me on LinkedIn!!!
cmpbn
2 years agoNew Member
Instead of manually passing city = chicago and sal > 500.
is there a way to to parameterized the hard coded values?
NaveenGandhi
Memorable Member
2 years agocmpbn
For City you can use a slicer of city name[create a city dim table and keep this disconnected], For salary create a numeric parameter. Use selectedvalue function to pass both of these to the measure. It will look something like below.
calculate(count(emp),city=selected value of(city_fromdim table)&&salary>selectedvalue(numeric_parameter))