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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
FirstPeace
Regular Visitor

Passing a column name as the parameter selection

Hi,

 

I have a need where the filter condition Column_name <> null has to be passed through the 

 

= Table.SelectRows(Sales, each ([sold_to] <> null) )

 

I have columns in the fact as sold_to, ship_to, bill_to. 

The dataset has to be seperately built to reduce the data and focus only on the particular type.  

 

I am not able to use a parameter (defined) in place of the colum name. any suggestions.

 

thanks,

Venu

1 ACCEPTED SOLUTION
Vijay_A_Verma
Super User
Super User

Use this

= Table.SelectRows(Sales, each (Record.Field(_,your parameter name)<> null) )

Change your parameter name appropriately. 

View solution in original post

2 REPLIES 2
v-stephen-msft
Community Support
Community Support

Hi @FirstPeace ,


Could you tell me if your problem has been solved?
If it is, kindly Accept it as the solution. More people will benefit from it.
Or you are still confused about it, please provide me with more details about your problem.


Best Regards,
Stephen Tao

Vijay_A_Verma
Super User
Super User

Use this

= Table.SelectRows(Sales, each (Record.Field(_,your parameter name)<> null) )

Change your parameter name appropriately. 

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.