Reader small image

You're reading from  Data Modeling with Microsoft Excel

Product typeBook
Published inNov 2023
PublisherPackt
ISBN-139781803240282
Edition1st Edition
Right arrow
Author (1)
Bernard Obeng Boateng
Bernard Obeng Boateng
author image
Bernard Obeng Boateng

Bernard Obeng Boateng is a Microsoft Excel MVP, Microsoft Certified Trainer, with over 10 years work experience in Banking, Insurance and Business Development. He is founder of Finex Skills Hub an approved Training Provider of the Financial Modeling Institute, Canada. Finex Skills Hub runs the Finex Project in Ghana, a pro bono student training outreach program for students in Data Analytics and Financial Modeling. Bernard also provides consultancy services for SMEs (start-ups and existing) in Financial Management, Business Planning and Research. He has an active audience online with about 17,000 followers on his LinkedIn Account. where he shares tips and tricks on Microsoft Excel and other Office Apps.
Read more about Bernard Obeng Boateng

Right arrow

Spilling cube functions with dynamic array formulas

We have already calculated CUBESETCOUNT formulas that gave us the number of items in each set.

Excel’s SEQUENCE function returns a sequence of numbers when you input the number of rows or columns required. We are going to use the results from our CUBESETSETCOUNT function to indicate the number of rows required. An example is shown next:

Figure 6.35 – Using SEQUENCE to spill numbers

Figure 6.35 – Using SEQUENCE to spill numbers

We take advantage of this spilling feature of SEQUENCE and input this formula into our CUBERANKEDMEMBER function so that instead of returning the nth item, it will return all the items in the set based on the numbers in the SEQUENCE formula.

Our completed formula to return all the items in the Regions column looks like this:

Figure 6.36 – Combining SEQUENCE with CUBERANKEDMEMBER to spill cube members

Figure 6.36 – Combining SEQUENCE with CUBERANKEDMEMBER to spill cube members

You now know how to create measures using DAX, create summary reports...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Data Modeling with Microsoft Excel
Published in: Nov 2023Publisher: PacktISBN-13: 9781803240282

Author (1)

author image
Bernard Obeng Boateng

Bernard Obeng Boateng is a Microsoft Excel MVP, Microsoft Certified Trainer, with over 10 years work experience in Banking, Insurance and Business Development. He is founder of Finex Skills Hub an approved Training Provider of the Financial Modeling Institute, Canada. Finex Skills Hub runs the Finex Project in Ghana, a pro bono student training outreach program for students in Data Analytics and Financial Modeling. Bernard also provides consultancy services for SMEs (start-ups and existing) in Financial Management, Business Planning and Research. He has an active audience online with about 17,000 followers on his LinkedIn Account. where he shares tips and tricks on Microsoft Excel and other Office Apps.
Read more about Bernard Obeng Boateng