RICH937
Board Regular
- Joined
- Apr 15, 2023
- Messages
- 59
- Office Version
- 365
- Platform
- Windows
- Mobile
Hi folks.
About 3 weeks ago, I began to try and learn how to use power query, and while I think I'm slowly getting the basics, I cannot for the life of me figure out how to do what would be an insanely easy task in Excel. I have a fairly large database that I'm working with, and am trying to calculate paretos (e.g. 80/20) using average monthly volume for about a dozen or so criteria. My goal is to end with a model that is responsive to monthly changes without the need for refreshing the multiple power pivot workbooks.
I've tried all the usual sources, and I just can't seem to get it right. I've tried unpivoting and grouping, but cannot figure out how to specify the "X>0" requirement for averaging. Tried an insanely long nested if/then, but that didn't work either. Most of what I am finding either (a) has only 1 column that is being averaged, or (b) is "averagingif" using other criteria than values. The latter define those variables using =>. Maybe that is the right way to go, but I can't figure it out.
I'm not sure if the BB will work for this, but if it does, the queries are in the mini sheet below.
One other Q. I have only seen one YT class show adding calculations inot a table loaded from PQ editor, and then reloading the results into editor using the "from table/range" option to get data. I can make that work, but it's going to get huge quick, and it seems to require almost as much refreshing as power pivot. I'm just not sold that is the best way forward.
Any help will be greatly appreciated.
About 3 weeks ago, I began to try and learn how to use power query, and while I think I'm slowly getting the basics, I cannot for the life of me figure out how to do what would be an insanely easy task in Excel. I have a fairly large database that I'm working with, and am trying to calculate paretos (e.g. 80/20) using average monthly volume for about a dozen or so criteria. My goal is to end with a model that is responsive to monthly changes without the need for refreshing the multiple power pivot workbooks.
I've tried all the usual sources, and I just can't seem to get it right. I've tried unpivoting and grouping, but cannot figure out how to specify the "X>0" requirement for averaging. Tried an insanely long nested if/then, but that didn't work either. Most of what I am finding either (a) has only 1 column that is being averaged, or (b) is "averagingif" using other criteria than values. The latter define those variables using =>. Maybe that is the right way to go, but I can't figure it out.
I'm not sure if the BB will work for this, but if it does, the queries are in the mini sheet below.
One other Q. I have only seen one YT class show adding calculations inot a table loaded from PQ editor, and then reloading the results into editor using the "from table/range" option to get data. I can make that work, but it's going to get huge quick, and it seems to require almost as much refreshing as power pivot. I'm just not sold that is the best way forward.
Any help will be greatly appreciated.
CUST ID |