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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Syndicate_Admin
Administrator
Administrator

can't filter Table.First in a custom column formula

I have two tables called "ModelParameters" and "ModelRun". I am trying to add a custom column to "ModelRun" that is single row in "ModelParameters". I am trying to filter "ModelParameters" using the column "Scenario" which is in "ModelParameters". When I use this for the custom column I don't get the correct record I only get the first record in "ModelParameters"

 

Table.First(ModelParameters, each [Scenario]=3)

 

How do I filter "ModelParameters"?

3 REPLIES 3
Anonymous
Not applicable

Hi @Syndicate_Admin ,

 

Eyelyn9_1-1657080248623.png

 

Such error usually caused by incorrect or non-existent column names. See the details:

Eyelyn9_0-1657080203755.png

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Vijay_A_Verma
Super User
Super User

Try using this

Table.SelectRows(ModelParameters, each [Scenario]=3)

Yes this does solve the question I posted however it doesn't help me with my broader problem which was using a column in ModelRun to filter ModelParameters. So i have a column in ModelRun call ScenarioRun so when i use the following formula for a custom column in the query for ModelRun:

 

Table.SelectRows(ModelParameters, each [Scenario]=[ScenarioRun])

 

i get an errror that [ScenarioRun] can't be found.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.