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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Raj123
Frequent Visitor

Create new table\Column to add filtered Data

Hi,

I have requirement to filter value based on condition and add it new column on existing table (If possible) or create new table . 

I want to filter value for arrivaldate, arrivaltime, deaprturedate, departuretime where status is "in" and add them to new column or into new table, same with status "out".

I have added sample table and output required table.

Any assistance will be helpful.

Thank you in advance.

Sample Table

 

IDLastNameFirstNameArrivalDateArrivalTimeDeparturedateDepartureTimeStatus
1First1Last118/03/202421:2018/03/202416:40out
1First1Last119/03/20248:3519/03/20241:30out
1First1Last129/03/20245:1528/03/202422:55in
1First1Last129/03/202418:1029/03/20247:45in
1First2Last218/03/202421:2018/03/202416:40out
1First2Last219/03/20248:3519/03/20241:30out
1First2Last229/03/20245:1528/03/202422:55in
1First2Last229/03/202418:1029/03/20247:45in

 

Output Required

 

IDLastNameFirstNameOUT_ArrivalDateOUT_ArrivalTimeOUT_DeparturedateOUT_DepartureTimeStatusIN_ArrivalDateIN_ArrivalTimeIN_DeparturedateIN_DepartureTimeStatus
1First1Last118/03/202421:2018/03/202416:40out29/03/20245:1528/03/202422:55in
1First1Last119/03/20248:3519/03/20241:30out29/03/202418:1029/03/20247:45in
1First2Last218/03/202421:2018/03/202416:40out29/03/20245:1528/03/202422:55in
1First2Last219/03/20248:3519/03/20241:30out29/03/202418:1029/03/20247:45in
1 REPLY 1
lbendlin
Super User
Super User

 

I have requirement to filter value based on condition and add it new column on existing table (If possible) or create new table . 

 

neither of this is possible. You cannot create (meaningful) columns or tables from measures or user choices (filters).

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors