Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe'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
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
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
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:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@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 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 53 | |
| 36 | |
| 33 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 72 | |
| 72 | |
| 38 | |
| 35 | |
| 26 |