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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Filter a Table Using a Measure

I am trying to filter a table using a measure. Basically I want to filter and retain only those values where the 'Table'[Task Current Milestone Status ] = "Ongoing".

I've tried: Filter Tasks Open 1 = FILTER ('Table',[Task Current Status] = "Ongoing")

I keep getting an error as seen in the picture below. Thus, the final table should only have 3 rows at the end, where the [Task Current Milestone Status] = "Ongoing".

 

How can I achieve this result? You can also download the file with the link below. https://drive.google.com/file/d/1EBEiYfVwfdTX7R8hJcrG1TzoZ3N_rljH/view?usp=sharing

 

example.PNG

3 REPLIES 3
v-alq-msft
Community Support
Community Support

Hi, @Anonymous 

 

If you take the answer of someone, please mark it as the solution to help the other member0s who have same problems find it more quickly. If not, let me know and I'll try to help you further. Thanks.

 

Best Regards

Allan

v-alq-msft
Community Support
Community Support

Hi, @Anonymous 

 

A calculated column or a measure will return a scalar value. While Filter() function return a table that represents a subset of another table or expression. I'd like to suggest you create a calculated table with the following dax. The pbix file is attached in the end.

NewTable = FILTER ('Table',[Task Current Status] = "Ongoing")

 

Result:

b1.png

 

Best Regards

Allan

 

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

 

Fowmy
Super User
Super User

@Anonymous 

FILTER returns a table, you cannot return a table using a measure, if you need to count the rows for example then you can use like


Measure Name =  COUNTROWS(FILTER ('Table',[Task Current Status] = "Ongoing"))

 

________________________

If my answer was helpful, please consider Accept it as the solution to help the other members find it

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube  LinkedIn

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.