Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
create table g_emp(empid number,ename varchar2(100));
insert into g_emp values(1,'emp1');
insert into g_emp values(2,'emp2');
create table g_emp_comp (empid number, ename varchar2(100), boss varchar2(100));
insert into g_emp_comp values(1,'emp1','emp1_boss');
insert into g_emp_comp values(2,'emp2','emp2_boss');
insert into g_emp_comp values(3,'emp3','emp3_boss');
commit;
when you create a power bi report with above 2 tables, we have a one to one created automatically based on empid
Question: when i use the boss column from g_emp_comp as a slicer, I don't want to see emp3_boss, because there is no emp3 record in the first table g_emp , how do i do that ?
Solved! Go to Solution.
Hi @Anonymous ,
Please new a measure.
Measure =
VAR _ename = MAX('g_emp'[ename])
RETURN
IF(_ename<>BLANK(),1)
Then select the slicer, apply this measure to the filter of this view, and set it as shown in the figure.
Attached PBIX file for reference.
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data
Hi @Anonymous ,
Please new a measure.
Measure =
VAR _ename = MAX('g_emp'[ename])
RETURN
IF(_ename<>BLANK(),1)
Then select the slicer, apply this measure to the filter of this view, and set it as shown in the figure.
Attached PBIX file for reference.
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data
This is strange, my end user thinks one to one relationship is like an oracle inner join
I never thought about it in this way but is there a dax that I can use to create a new table and get only the data that matches, ( only have emp1_boss and emp2_boss as rows in the new table)
create a visual level filter on either of the columns from g_emp and set it to be "not blank".
tried the below, not working
does not help,
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
98 | |
97 | |
81 | |
77 | |
66 |
User | Count |
---|---|
126 | |
105 | |
103 | |
81 | |
72 |