Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Good afternoon
I have 2 tables.
TblRef |
A |
B |
C |
D |
and
tblmain |
A |
B |
C |
D |
E |
F |
G |
H |
A |
B |
B |
C |
C |
I want to dsiplay a table which filters tblMain to teh values in tblRef, and displays 0 values.
In the examples above I want the display table output to look as below.
Value | Count |
A | 2 |
B | 3 |
C | 3 |
D | 0 |
How do I achieve this?
I cannot seem to get the filter correct and when I use a measure to count, I tried adding +0 to the end which then gave me the non tblref values.
I look forward to hearing from you.
Lola
Solved! Go to Solution.
Hi @MyWeeLola - if a value from tblRef does not exist in tblMain, it still shows a count of 0. but D is present in main table so we are gtting 1 .
Hope it helps
Proud to be a Super User! | |
Hello @MyWeeLola,
Make relationship your table one to many. İf TblRef have unique values.
After that You use below the dax code and for example my column name is "Text" but ı take the column from dimension table which means unique column table.
However, you can't use the masure in slicer. So that I recommend to use the measure as filter pane.
Best Regards,
Gökberk Uzuntaş
LinkedIn: https://www.linkedin.com/in/g%C3%B6kberk-uzunta%C5%9F-b43906198/
Medium: https://medium.com/@uzuntasgokberk
İf this post helps, then please consider Accept it as solution and kudos to help the other members find it more quickly.
Hello @MyWeeLola,
Make relationship your table one to many. İf TblRef have unique values.
After that You use below the dax code and for example my column name is "Text" but ı take the column from dimension table which means unique column table.
However, you can't use the masure in slicer. So that I recommend to use the measure as filter pane.
Best Regards,
Gökberk Uzuntaş
LinkedIn: https://www.linkedin.com/in/g%C3%B6kberk-uzunta%C5%9F-b43906198/
Medium: https://medium.com/@uzuntasgokberk
İf this post helps, then please consider Accept it as solution and kudos to help the other members find it more quickly.
Hi @MyWeeLola - if a value from tblRef does not exist in tblMain, it still shows a count of 0. but D is present in main table so we are gtting 1 .
Hope it helps
Proud to be a Super User! | |
User | Count |
---|---|
84 | |
79 | |
71 | |
48 | |
42 |
User | Count |
---|---|
111 | |
54 | |
50 | |
40 | |
40 |