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

View all the Fabric Data Days sessions on demand. View schedule

Reply
lchoo
New Member

How to filter numbers in Power BI

Hello!

 

I'm trying to filter my very large data set (1M+ rows) by a wildcard number (a part of a GEOID) and not text, and I'm having a hard time. 

 

I used this measure: 

filter (<table name>, <column name> = "value*")

 

Any help is greatly appreciated.  I'm a complete beginner in all respects so giving me the answer in babysteps would be a amazing.

 

Thanks.

 

 

1 ACCEPTED SOLUTION
smpa01
Super User
Super User

@lchoo  try this instaed

 

 

measure := calculate([__measure], FILTER(VALUES(tbl[columnToFIlter]), tbl[columnToFIlter]="value"))

 

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

View solution in original post

4 REPLIES 4
lchoo
New Member

Thanks.  Here's a sample from wordpad b/c the file is too large for Excel.  I'd like to filter the table by any first 5 numbers that I select, so from what I read to make it a wildcard, I would enter "XXXXX*" I think, but I'm not sure.  Many thanks for your help.

 

block_geoid,bsl_count,unit_count
010010201001000,9,9
010010201001001,20,27
010010201001002,17,20
010010201001003,12,12
010010201001006,1,1
010010201001010,2,3
010010201001012,13,14
010010201001014,44,61
010010201001015,17,18
010010201001017,23,26
010010201001018,16,18

 

 

lchoo
New Member

Thanks so much.  Sorry for being ignorant about this.  What expression do I use for the "calculate" above since I just want a filtered table by a wildcard number?  Also, if I want my value to be a wildcard, can I just use "value*"?

 

Thanks so much for your help. 

Let's have some sample data and desired output based on the sample data before anything else.

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs
smpa01
Super User
Super User

@lchoo  try this instaed

 

 

measure := calculate([__measure], FILTER(VALUES(tbl[columnToFIlter]), tbl[columnToFIlter]="value"))

 

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

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.

Top Solution Authors
Top Kudoed Authors