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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors