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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
TK16
New Member

Show results on report when a row meets certain criteria

I am looking for how to show results on a report only if one of the items is true. For ex:

 

CustName  Cust#   Form

John Smith  12345   Form A

Jane Doe      67890  Form B

Bugs bunny  99999  Form A & FormB

 

I only want to see those that have ONLY Form  A

1 ACCEPTED SOLUTION

Hi @TK16 

 

You can first use Power Query Editor to transform the table. Steps are:

1. Split the Form column into Rows by delimiter "&";

2. Trim the new Form column to remove addtional leading or tailing spaces.

 

You will get table in the following format. Apply the change to the report. 

vjingzhang_3-1651722714610.png

 

In report, create the following measure and use it as a visual-level filter on the table visual. Set it to show items when value is 1. 

 

Filter measure = 
VAR _form = CALCULATE(SELECTEDVALUE('Table'[Form]),ALLEXCEPT('Table','Table'[CustName],'Table'[Cust#]))
RETURN
IF(_form = "Form A", 1, 0)

 

vjingzhang_2-1651722350175.png

 

If you don't want to change the table format, you can try the following measure. 

 

Filter Measure 2 = IF(CONTAINSSTRING(SELECTEDVALUE('Table (2)'[Form]),"Form A") && NOT CONTAINSSTRING(SELECTEDVALUE('Table (2)'[Form]),"&"), 1, 0)

 

vjingzhang_0-1651728655291.png

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

View solution in original post

3 REPLIES 3
TK16
New Member

I wish it was as simple as that.  Form A is a request for Services. Form B is that the request has been completed.  I want to see only those customers that have a request for services which have not been completed, so where there is only the existence of Form A not A & B.  Hope this helps clarify

Hi @TK16 

 

You can first use Power Query Editor to transform the table. Steps are:

1. Split the Form column into Rows by delimiter "&";

2. Trim the new Form column to remove addtional leading or tailing spaces.

 

You will get table in the following format. Apply the change to the report. 

vjingzhang_3-1651722714610.png

 

In report, create the following measure and use it as a visual-level filter on the table visual. Set it to show items when value is 1. 

 

Filter measure = 
VAR _form = CALCULATE(SELECTEDVALUE('Table'[Form]),ALLEXCEPT('Table','Table'[CustName],'Table'[Cust#]))
RETURN
IF(_form = "Form A", 1, 0)

 

vjingzhang_2-1651722350175.png

 

If you don't want to change the table format, you can try the following measure. 

 

Filter Measure 2 = IF(CONTAINSSTRING(SELECTEDVALUE('Table (2)'[Form]),"Form A") && NOT CONTAINSSTRING(SELECTEDVALUE('Table (2)'[Form]),"&"), 1, 0)

 

vjingzhang_0-1651728655291.png

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

Syk
Super User
Super User

Add you "Form" field to the filter pane and then select "Form A" in the basic filtering. 

Similar to how I'm showing only Austin data in this screenshot example

Syk_0-1651091709247.png

 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors