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.
Hi,
I have a 2 tables that interact with each other, Table A and Table B.
Table A shows a person with # of relatives (e.g. brother, sister, etc)
Person #Total Relatives
John 3
Mary 2
Table B Lists details of each Relative
Relative Height Age
John_Brother 6 21
John_Dad 5.7 52
John_Sis 5.2 17
Mary_Sis 5.2 15
Mary_Mom 5.1 48
What i want to do is select John in table A and John_Dad in table B and still be able to see in Table A that John has 3 relatives. Instead, it only shows 1 relatives because that's what's been selected even though it has 3.
I tried this, but ican't get any where:
Solved! Go to Solution.
Thank you Everyone... i decided to go with a new table (using the summarize command), which worked out very well. Thank you for the various ideas.
Thank you Everyone... i decided to go with a new table (using the summarize command), which worked out very well. Thank you for the various ideas.
You can create a measure as bellow for Relative and use that in your first table:
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
Hi,
I am not sure if I understood your question correctly, but please check the below picture and the attahced pbix file.
Total number of relatives: =
VAR currentperson =
MAX ( TableA[Person] )
RETURN
COUNTROWS ( FILTER ( TableB, LEFT ( TableB[Relative], 4 ) = currentperson ) )
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi Jihwan... this is close, 2 observations:
Table C This is where all the data comes from . Table A and B are displayed separately on the dashboard for the user to select the data.
Person Relative Height Age
John John_Brother 6 21
John John_Dad 5.7 52
John John_Sis 5.2 17
Mary Mary_Sis 5.2 15
Mary Mary_Mom 5.1 48
How do the tables interact?
Proud to be a Super User!
Paul on Linkedin.
All the data from Table A and Table B comes from the same source table, but i split them visually into A & B for data slicing & dicing on the dashboard. So the source table looks like this, which looks mostly like Table B:
John John_Brother 6 21
John John_Dad 5.7 52
etc....
HOpe this answers your question.
If you set up the model as follows
You can set up the visual with the slicers and table with the fields from the Dimension tables and with this measure:
Number of relatives =
CALCULATE(COUNT('Relative Table'[RelativeT]), ALL('Relative Table'[RelativeT]))
You will get
Proud to be a Super User!
Paul on Linkedin.
Hi Paul... I'm going to try this later today and get back.
Thank you..
M
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 |
---|---|
106 | |
105 | |
79 | |
68 | |
61 |
User | Count |
---|---|
143 | |
104 | |
103 | |
82 | |
70 |