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
khaledSA
Frequent Visitor

Create a subset table from a fact table

I need to creat a sub set table with all the columns in the main table but filtered with value "A" in the Code column. I need all related rows in the coulmns to be able to add additional calculated columns in the filtered sub set table. I appreciate your help.

DateCodeIndVal
1/1/2020ANM20
1/6/2020BBL40
1/20/2020ANM60
2/15/2020ACX80
1/5/2020CDG30

 New table:

DateCodeIndVal
1/1/2020ANM20
1/20/2020ANM60
2/15/2020ACX80
1 ACCEPTED SOLUTION

@khaledSA ,

 

Can you an example of it ?

Maybe your column needs to be cleaned. Have you tried TRIM/CLEAN it on Query Editor ?



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



View solution in original post

4 REPLIES 4
camargos88
Community Champion
Community Champion

@khaledSA ,

 

TABLE = FILTER(TABLE, TABLE[CODE] = "A")

 

Capture.PNG



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



Hi Recardo,

I have tried that befroe but I get empty columns.

@khaledSA ,

 

Can you an example of it ?

Maybe your column needs to be cleaned. Have you tried TRIM/CLEAN it on Query Editor ?



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



Worked after Trim/Clean. Thank you.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.