Power Query Sum of

hatstand

Well-known Member
Joined
Mar 17, 2005
Messages
778
Office Version
  1. 2016
Platform
  1. Windows
Hi All,
I'm getting lost trying to convert a 'Sum of' Cubevalue into a cell reference. I've tried every combination of text but still cannot get it to work. It's so I can drag the formula along underneath a row of dates. Any pointers would be much appreciated.

=CUBEVALUE("ThisWorkbookDataModel","[Test csv Folder Import].[File].&["&$C$1&"]","[Test csv Folder Import].[Group].&["&$C$2&"]","[Test csv Folder Import].[Section].&["&$B21&"]","[Measures].[Sum of 30/03/2020]")
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Assuming you're referring to the last section, you'd want:

"[Measures].[Sum of "&TEXT(your_cell,"dd/mm/yyyy")&"]"
 
Upvote 0
Thank you RoryA, much appreciated. Unfortunately it's giving me a #N/A. I've checked the function side of it and it's returning what you have written, am I missing something?
 
Upvote 0
Sorted RoryA. The cell where the date is needed to be in the General format for the formula to work. Once again, thanks for taking the time to help.
 
Upvote 0

Forum statistics

Threads
1,214,585
Messages
6,120,394
Members
448,957
Latest member
Hat4Life

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top