Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
apagan
Helper I
Helper I

New Measure returning error

Ok.  This may just be a rookie mistake...  I have 2 tables where I am attempting to get a filtered count.  Here is what I am using:

 

Draft = COUNTAX(FILTER(WorkOrders, RELATEDTABLE(FuelTypes[Description])="Diesel"),[WorkOrdersUniqueID])

 

I am getting an error that indicates that 'Description' in table 'FuelTypes' cannot be determined.

 

If someone could point me in the right directly, I would truely appreciate it.

 

Thanks!

1 ACCEPTED SOLUTION

You should have a relationship set up between your both tables

 

RTMO -- RELATEDTABLE travels from Many to one Relationship. 

ROM  -- RELATED travels from One to Many Relationship.

 

 

Thanks & Regards,
Bhavesh

Love the Self Service BI.
Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to give Kudos.

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

I think you should be using RELATED, not RELATEDTABLE.

For some reason, that's giving me a new error message:  "The column Fueltype[Description] either doesn't exist or doesn't have a relationship to any table available in the current contenxt"

 

Draft = COUNTAX(FILTER(WorkOrders, RELATED(FuelTypes[Description])="Diesel"),[WorkOrdersUniqueID])

 

I am making an adjustment to a current graph, which already is using these 2 tables (FuelType and WorkOrders).

 

Thanks!

You should have a relationship set up between your both tables

 

RTMO -- RELATEDTABLE travels from Many to one Relationship. 

ROM  -- RELATED travels from One to Many Relationship.

 

 

Thanks & Regards,
Bhavesh

Love the Self Service BI.
Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to give Kudos.

Thanks for the clarification, Bhavesh.  I was wondering what the difference was between the two.

Hi @apagan,

 

Related function returns a related value from another table. While relatedtable function returns a table of values. This function is a shortcut for CALCULATETABLE function with no logical expression.

 

Thanks,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors