Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
Hello
Can you tell me please why this formula does not work?
CALCULATE(COUNT(DifferentTable[Col1]),filter(DifferentTable,DifferentTable[Col2]=RELATED(SameTable[Col1])))
I get the following error:
The column 'SameTable[Col1]' either doesn't exist or doesn't have a relationship to any table available in the current context.
Thanks!
Solved! Go to Solution.
Hi @Anonymous ,
Is there any relationship between these two tables?
If there is no relationship between them, you cannot use related() function. If they have a relationship actually, try to use relatedtable() function.
Related() is used to refer to One side of a relationship.
RELATEDTABLE() refer to the many side.
Please refer this article about related and relatedtable: Related and RelatedTable – DAX for Power Pivot, Power BI and SSAS
Best Regards,
Yingjie Li
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Is there any relationship between these two tables?
If there is no relationship between them, you cannot use related() function. If they have a relationship actually, try to use relatedtable() function.
Related() is used to refer to One side of a relationship.
RELATEDTABLE() refer to the many side.
Please refer this article about related and relatedtable: Related and RelatedTable – DAX for Power Pivot, Power BI and SSAS
Best Regards,
Yingjie Li
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
You can use related if you are trying to reach a column in a table that on one side (1:*) of the relationship.
What is that you are trying to achieve and are you creating a Column or Measure?
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 22 | |
| 21 | |
| 20 | |
| 19 | |
| 13 |
| User | Count |
|---|---|
| 58 | |
| 52 | |
| 37 | |
| 31 | |
| 27 |