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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
trupac
Frequent Visitor

Custom column is not filtering table

I have a matrix that filters my table.

 

I added a custom column with this formatted formula 

=Text.Insert(Text.Insert(Text.Insert(Text.Insert(Text.Insert ([WELL_LOCATION],3,"/"),6,"-"),9,"-"),13,"-"),18,"/")

 

I tried to replace WELL_LOCATION with this new formatted columm but now my table does not filter at all.

1 ACCEPTED SOLUTION
trupac
Frequent Visitor

I figured out an alternate way to fix my issue, instead of creating columns or measures in Power Bi, I just wrote the reformatting into my sql code and my tables and visuals all work now. 

View solution in original post

6 REPLIES 6
trupac
Frequent Visitor

I figured out an alternate way to fix my issue, instead of creating columns or measures in Power Bi, I just wrote the reformatting into my sql code and my tables and visuals all work now. 

Hi @trupac ,

 

It seems that you have gotten a solution. Could you please mark the helpful post as Answered? It will help the others in the community find the solution easily if they face the same problem as yours. Thank you.

 

 

Best Regards,

Clara Gong

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.

v-kaiyue-msft
Community Support
Community Support

Hi @trupac ,

 

If you create a new custom column in power query, it will insert specific characters based on the specified position in your original text string [WELL_LOCATION].

 

So if your original WELL_LOCATION value is like "ABCDEFGHIJKLMNO", it will be converted to "ABC/DE-FG-HIJ-KLMN/O" and it will become the new column.

 

If you don't need the original column, then you can delete it and only keep the new custom column, and then use the new column for the matrix.

 

vkaiyuemsft_0-1729578333078.png

 

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.

Hi Clara,

 

Thank you for the response, I have tried deleting the original WELL_LOCATION column but it breaks all the relationships to all the tables. I'm just trying to get my table to filter by the formatted column rather than the original and for some reason it won't work. 

Hi @trupac ,

 

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data. We can better understand the problem and help you.

 

 

Best Regards,

Clara Gong

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.

ghoshabhijeet
Solution Supplier
Solution Supplier

@trupac  Thank you for your query. Could you please share the pbix file with some sample data ? Thanks!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Kudoed Authors