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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
JK-1
Helper II
Helper II

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.