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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors