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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

How to filter all rows of column except one row/one name?

I want to filter a field(WorkerName) of Worker table but exclude only one name "Once Off".

2 ACCEPTED SOLUTIONS
v-stephen-msft
Community Support
Community Support

Hi @Anonymous ,

 

You can filter in desktop or power query editor.

 

In the power bi desktop, you can add a visualization filter, page filter, or report filter to a report in Power BI.

4.png

5.png

 

In the power query editor, you can do the following. Click the triangle button next to the field name, and then filter.

6.png 

 

 

Reference: https://docs.microsoft.com/en-us/power-bi/create-reports/power-bi-report-add-filter

                  https://www.iscorp.biz/power-bi-filtering-your-data/

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

View solution in original post

Anonymous
Not applicable

CALCULATE(
SUM(InvoiceLines[Tons]),
FILTER(InvoiceLines, InvoiceLines[ITEMID] = InventoryStock[ITEMID]),
Filter(Worker, Worker[WORKERNAME] <> "Once Off")
)

View solution in original post

7 REPLIES 7
v-stephen-msft
Community Support
Community Support

Hi @Anonymous ,

 

You can filter in desktop or power query editor.

 

In the power bi desktop, you can add a visualization filter, page filter, or report filter to a report in Power BI.

4.png

5.png

 

In the power query editor, you can do the following. Click the triangle button next to the field name, and then filter.

6.png 

 

 

Reference: https://docs.microsoft.com/en-us/power-bi/create-reports/power-bi-report-add-filter

                  https://www.iscorp.biz/power-bi-filtering-your-data/

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

amitchandak
Super User
Super User

@Anonymous , You can create a measure

 

countrows(Filter(Table, Table[WorkerName] <> "Once Off"))

Anonymous
Not applicable

Thanks for quick reply but I don't want count but all names

@Anonymous , Plot the name with the measure in a table visual you will get those

 

Or plot name in visual and use visual level filter for measure is not blank

Anonymous
Not applicable

 

Ashraf_HK_0-1634123409881.png

 

Anonymous
Not applicable

WorkerName = FILTER ( VALUES ( Worker[WorkerName] ), Worker[WorkerName] = "Once Off" )
 

Ashraf_HK_0-1634118268367.png

Now I want all names except Once Off

Anonymous
Not applicable

CALCULATE(
SUM(InvoiceLines[Tons]),
FILTER(InvoiceLines, InvoiceLines[ITEMID] = InventoryStock[ITEMID]),
Filter(Worker, Worker[WORKERNAME] <> "Once Off")
)

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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