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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. 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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.