Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
If i have two fields : X and Y. Both integer.
I can filter one of them with the filter option. But what if would like to filter on this : WHERE X > Y
how can i do this? I would like to do this in M. And without creating a new column with the difference between X and Y, and filter on this.
Thanks in advanced.
When you say 2 fields, do you mean 2 columns? If you want to do this in Power Query (M as you say), then you will need a new column. But it doesn't have to be the difference between the 2 columns. Just add a new column something like this.
if [X] > [Y] then 1 else 0
then just filter when this column equals 1.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
63 | |
55 | |
54 | |
36 | |
34 |
User | Count |
---|---|
76 | |
73 | |
46 | |
45 | |
43 |