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.
Hello,
Assuming I have two tables
Table1:
Name1
Name2
Name3
and Table2
Name1
Name2
Name1
Name2
Name4
Name5
Relationship one [Table1] many [Table2]
I would like to create a masure that will count, how many values from one side of the relationship, matches values from many side of the relationship (2) and another value how many does not (1)
Solved! Go to Solution.
hi @Pbiuserr
try to plot two card visuals with measures like:
count1 =
COUNTROWS(
INTERSECT(
ALL(Table1[Name]),
ALL(Table2[Name])
)
)
count2 =
COUNTROWS(
EXCEPT(
VALUES(Table2[Name]),
VALUES(Table1[Name])
)
)
it worked like:
hi @Pbiuserr
try to plot two card visuals with measures like:
count1 =
COUNTROWS(
INTERSECT(
ALL(Table1[Name]),
ALL(Table2[Name])
)
)
count2 =
COUNTROWS(
EXCEPT(
VALUES(Table2[Name]),
VALUES(Table1[Name])
)
)
it worked like:
Thank you! Can you advise what to do if second table has more columns than first one? Tried VALUES etc but does not work
User | Count |
---|---|
85 | |
79 | |
64 | |
52 | |
46 |
User | Count |
---|---|
101 | |
52 | |
41 | |
39 | |
37 |