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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
admin11
Memorable Member
Memorable Member

How to search for particular GL Code ?

Hi All

I have a long list of GL Code , in case i need to search for particular GL Code , it there a faster way ? instead now i need to manually search.

admin11_0-1618996825919.png

 

1 ACCEPTED SOLUTION

Hi @admin11 ,

I agree with @amitchandak, you can use 

IF('GL'[GL Code] in {81651,80351,80612},1,0)

instead of

SWITCH(TRUE(), 'GL'[GL Code]=81651 || 'GL'[GL Code]=80351 || 'GL'[GL Code]=80612

Did it work ? Mark it as a solution to help spreading knowledge.

A kudos would be appreciated 

 

View solution in original post

4 REPLIES 4
DataVitalizer
Solution Sage
Solution Sage

Hi @admin11 

 

Could you please display the output of that formula just to understand the need in order to suggest a solution ?

 

Did it work ? Mark it as a solution to help spreading knowledge.

A kudos would be appreciated 

@DataVitalizer 

Thank you for wanted to help me on my post.

@selimovd 

have share with me how to create the expression , to create a expense summary table. display on the right side of the below image. it work fine :-

admin11_0-1619040582240.png

below is my PBI file :-

https://www.dropbox.com/s/qdvgujb4v2fu4ch/PBT_V2021_400%20GL_TI.pbix?dl=0

 

Paul

Hi @admin11 ,

I agree with @amitchandak, you can use 

IF('GL'[GL Code] in {81651,80351,80612},1,0)

instead of

SWITCH(TRUE(), 'GL'[GL Code]=81651 || 'GL'[GL Code]=80351 || 'GL'[GL Code]=80612

Did it work ? Mark it as a solution to help spreading knowledge.

A kudos would be appreciated 

 

amitchandak
Super User
Super User

@admin11 , You can use in  [GL Code] in {81651,81351 } //add  , separated values

 

What is the objective here?

 

can Text filter help here  https://appsource.microsoft.com/en-us/product/power-bi-visuals/WA104381309?src=office&tab=Overview

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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