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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi all,
Is it possible to add a column in M code and filter that added column on a condition based on a value in a column in a related table?
For example, we want to add a column displaying all Products from the Product table that have a cost of 0. The cost column is in table Cost. So something like SELECT PRODUCT FROM PRODUCTS WHERE TOTAL_COST = 0;
Solved! Go to Solution.
It si bad pratice to add M columns each time you need a filter.
Use a DAX measure instead ...
Click here to download an example
Please click thumbs up and accept as solution
It si bad pratice to add M columns each time you need a filter.
Use a DAX measure instead ...
Click here to download an example
Please click thumbs up and accept as solution
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.