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
JK-1
Helper I
Helper I

dummy table, and to introduce a condition so only return subset of rows

I have created an offshoot dummy table but only want to include a certain subset - say the original table has 20000 rows, I just want to return around 500 that meet a set criteria. Would the table be able to provide for that condition, incorporating SELECTCOLUMNS ? I've tried to play around with the below but can't get it to accept. Streamlined version below. Looking for it to only return those where --- IF 'Table'[Company]="Company4"


DUMMYTABLE = SELECTCOLUMNS(
Table,
"Ref", 'Table'[Reference],
"From", 'Table'[From],
"To", 'Table'[To]
)

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

You can use

DUMMYTABLE
    = SELECTCOLUMNS (
        FILTER ( Table, 'Table'[Company] = "Company4" ),
        "Ref", 'Table'[Reference],
        "From", 'Table'[From],
        "To", 'Table'[To]
    )

View solution in original post

2 REPLIES 2
johnt75
Super User
Super User

You can use

DUMMYTABLE
    = SELECTCOLUMNS (
        FILTER ( Table, 'Table'[Company] = "Company4" ),
        "Ref", 'Table'[Reference],
        "From", 'Table'[From],
        "To", 'Table'[To]
    )

Perfect. Thank you so much

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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 community update carousel

Fabric Community Update - June 2025

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