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

Join 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.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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