Forum Discussion
How to display info from another table?
Hi, ercwebdev , the most sophisticated part of DAX is filter propagation along with relationships among tables.
As to your example, if 'Project Data'[ProjectID] is dragged and dropped in a table/matrix viz, Risks[ProjectID] is at first hand automatically filtered by 'Project Data'[ProjectID] given that there exists such a relationship, 'Project Data'[ProjectID] 1:M Risks[ProjectID].
Better attach a mockup so that it's way much easier to get your issue done.
Hi,
Ok, have made a quick mockup and zipped (.pbix and Excel) if you want to download and try having a play:
https://1drv.ms/u/s!AtRktPvcDTo7dbfRYaTFut2IjhQ?e=NUDcJo
Many thanks,
A
- ercwebdev5 years agoFrequent Visitor
I've done some work on this and managed to get something that will suffice and do the job. Thought I would share it with the community.
Created a new Table with the following:
MyRedRiskTbl = FILTER( Risks, Risks[RiskColour]="Red" )This brings the Projects in that have a red. It seems to do a Distinct and doesn't duplicate them.
Then added a new column in the Project Data to look up and check if there is a corresponding value in the virtual table:
RedRiskCheckTwo = LOOKUPVALUE( MyRedRiskTbl[RiskColour],----- Result Column Name MyRedRiskTbl[Project ID],--- Search column 'Project Data'[Project ID] ----- Search Value , Blank()--- Not Match with condition returns Blank )This will then either insert 'Red' or leave it blank. I can then do some color formatting based on this.
Here is how it looks:
Thanks,
Alan