Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello,
I want to create 2 new queries (query B, query C) from a single query (query A) in query editor. In query B I want to filter "male" (Gender="male) and on the other query (query C) I want to filter "female" (Gender="female").
Can you please tell me how I can do this in query editor using M language?
Many thanks,
MariosChr90
Solved! Go to Solution.
Hi @Anonymous,
I will give you the example for 1 table but just replicate the steps.
On the query editor
1 - On query A right click and choose reference (one with the clip icon) doing referece will allow you to update all your tables when you make changes to query A
2 - Filter out the column or columns you need or change or add columns as needed
Regards,
MFelix
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @Anonymous,
I will give you the example for 1 table but just replicate the steps.
On the query editor
1 - On query A right click and choose reference (one with the clip icon) doing referece will allow you to update all your tables when you make changes to query A
2 - Filter out the column or columns you need or change or add columns as needed
Regards,
MFelix
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsMany thanks for your answer,
I still have an issue. I joined two tables and when use a column which belongs to the other table to filter out some rows it does not exclude the whole rows but keeps these rows and I get nulls in the value I filtered out.
If this is not clear please let me know.
Many thanks,
MariosChr90
HI @Anonymous,
So you join other tables and try to filter on original table to enable the filter effect to merge table, right?
If this is a case, I don't think it possible.(power query functions not support these operations)
If you filter on original tables, it can't analysis these source data and refresh merge table. You need to delete current steps and apply the filter before merge table.
Regards,
Xiaoxin Sheng
Easiest way is just to copy query A to query B and C and in those queries, filter as necessary.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
106 | |
94 | |
77 | |
65 | |
53 |
User | Count |
---|---|
145 | |
105 | |
104 | |
90 | |
63 |