maverick15
New Member
- Joined
- Jun 11, 2020
- Messages
- 5
- Office Version
- 365
- Platform
- Windows
Thanks in advance!
I'm creating a PowerPivot based report in Excel 365. I'm reporting actual quarterly sales data, performance against plan, and performance against prior year. There is a calendar table that links to the data table. I'm deriving prior year quarter by taking the value of the filter selected and then manually changing it to be the prior year:
=CUBEMEMBER("ThisWorkbookDataModel","[Fiscal Calendar].[Fiscal Quarter].["&LEFT($E$12,4)-1&RIGHT($E$12,3)&"]")
E12 is the filter value that is the current quarter (YYYYQ0# format)
This is fine for single selections of current quarter. I want the user to be able to select multiple quarters and pull the total of the prior year quarters.
I can put the results into a CUBESET so that I can see individual values selected, but I would need to iterate over those values, recreate the proper prior year quarter values, and create a new CUBESET with the altered data to use as an option to pass to the CUBEMEMBER formula. How would I do that? Is there a better way?
Any help is appreciated.
Thank you!
I'm creating a PowerPivot based report in Excel 365. I'm reporting actual quarterly sales data, performance against plan, and performance against prior year. There is a calendar table that links to the data table. I'm deriving prior year quarter by taking the value of the filter selected and then manually changing it to be the prior year:
=CUBEMEMBER("ThisWorkbookDataModel","[Fiscal Calendar].[Fiscal Quarter].["&LEFT($E$12,4)-1&RIGHT($E$12,3)&"]")
E12 is the filter value that is the current quarter (YYYYQ0# format)
This is fine for single selections of current quarter. I want the user to be able to select multiple quarters and pull the total of the prior year quarters.
I can put the results into a CUBESET so that I can see individual values selected, but I would need to iterate over those values, recreate the proper prior year quarter values, and create a new CUBESET with the altered data to use as an option to pass to the CUBEMEMBER formula. How would I do that? Is there a better way?
Any help is appreciated.
Thank you!