Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
I’m trying to create a new column that references each rows values compared to that of the entire table in power query. For example, I have a table of students, their study time (broken down into groups or less than 3 hours, 3-6 hours and > 6 hours) and their grades on an exam (each row is a student). I’m trying to create a new column that renders the predicted test grade based solely off of their study time value (so if their study time is less than 3 hours for example, the value of the new column for that row would be the average exam score over the whole table for all rows that had a study time of less than 3 hours). How can I create a new column that achieves this and filters the entire table based on each rows value?
Solved! Go to Solution.
Hi @Ad550 ,
I created a sample pbix file(see attachment) for you, please check whether that is what you want.
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regard
Hi @Ad550 ,
I created a sample pbix file(see attachment) for you, please check whether that is what you want.
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regard
@Ad550 ,
I know your question is to build it in power query but I think this would be more efficient as a measure. Does it have to be in power query?
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
111 | |
102 | |
99 | |
38 | |
37 |
User | Count |
---|---|
152 | |
125 | |
75 | |
74 | |
63 |