Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hey guys!
This is my first post (of many hopefully) here, and firstly thanks for any help you can give me!
I have 2 tables, one called All Trx, and another one called All CBs. They are related in a one to many (respectively) relationship by the fields called Trans ID on the first table, and AcuityTec ID on the second table. All tables have unique values in the IDs, and the cross filter setup is something I have been playing around, to try to make the DAX to work, but to no avail.
The first table as it says, contains all transactions, but the second table contains only transactions that were filed as chargeback. So all transactions from the second one will show at some point in the All trx, but not the other way around.
The formula I have tried is
Is_CB= RELATED('All CBs'[AcuityTecID]), but the intelligense doesn't pop up anything, telling me that there is no relationship between the big All Trx Table and the smaller All CBs table.
What could I do?
If you need any further context, please do let me know.
What I would like to do is to do a simple related() function, to checkk if the transaction that we have on the All trx, is found in the All CBs table. With the relationship model shown in the image, I can't get the related formula to work, and I am guessing that this has to do with the relationship type between them.
Solved! Go to Solution.
if you are creating a column in the table on the 1 side of the relationship, and getting data from the table on the many side of the relationship, you need to use relatedtable.
if you are creating a column in the table on the many side of the relationship, and getting data from the table on the one side of the relationship, you need to use related.
( keep in mind, that relatedtable returns a table not a scalar value, so in order to get data from using relatedtable,
you need to then using an iterator over relatedtable . )
hope this helps .
If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution ✅
It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🤠
The related tihng worked!
I used the following:
if you are creating a column in the table on the 1 side of the relationship, and getting data from the table on the many side of the relationship, you need to use relatedtable.
if you are creating a column in the table on the many side of the relationship, and getting data from the table on the one side of the relationship, you need to use related.
( keep in mind, that relatedtable returns a table not a scalar value, so in order to get data from using relatedtable,
you need to then using an iterator over relatedtable . )
hope this helps .
If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution ✅
It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🤠
This worked! I used the relatedtable as a variable as follows:
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
77 | |
73 | |
58 | |
35 | |
31 |
User | Count |
---|---|
99 | |
57 | |
56 | |
46 | |
40 |