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

Fabric Community Update - July 2025

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

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.