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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
Super User
Super User

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

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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