Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
hmasim_
Frequent Visitor

Analyze in Excel with CUBE functions

Hi There,

 

I have two questions.

 

1) To create flexible and specific format report our organisation is considering to connect with Powerbi sementic model and produce custom reports in excel using CUBE functions. - the question is, is it a robust solution? what are pros and cons of it?

 

2) How I disconnect from CUBE functions to paste all data as values, specially when i want to share file with collegues or external parties?

I tried to disconnect / Delete connection string used in CUBE formulas which resulted in #NA error. 

I also tried to change file location or copy file from one workbook to new with no success.

I read about offile OLAP option whihc is greyed out and it seems that it is not supported.

 

appriciate solution and expert opinion.

 

Many thanks.

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @hmasim_ ,

  1. Using Power BI Semantic Model with CUBE Functions in Excel

Pros:

 

Flexibility: CUBE functions allow you to create highly customized reports that aren’t confined to the structure of PivotTables

Direct Data Access: You can directly access and manipulate data from the Power BI semantic model, leveraging the power of DAX measures

Dynamic Updates: Reports can be refreshed to reflect the latest data from the Power BI model

Integration: Seamless integration with Power BI ensures that you are using governed and secure data

Cons:

 

Complexity: Writing and managing CUBE functions can be complex and may require a steep learning curve

Performance: Large datasets or complex calculations can impact performance and slow down Excel

Maintenance: Maintaining and updating reports with CUBE functions can be more challenging compared to traditional PivotTables

 

  1. Disconnecting from CUBE Functions to Paste Data as Values

To share your Excel file without the CUBE functions, you can follow these steps:

 

Copy and Paste as Values:

Select the range of cells containing the CUBE functions.

Right-click and choose “Copy” or press Ctrl + C

Right-click on the same range or a new location and choose “Paste Special” > "Values"

Convert to Formulas:

If you have a PivotTable connected to the Power BI model, you can convert it to formulas using the OLAP tools:

Select any cell in the PivotTable.

Go to the “PivotTable Tools: Analyze” tab.

Click “OLAP Tools” > "Convert to Formulas"

Below is the link will help you:

www.spreadsheetclass.com

gorilla.bi

Best Regards,

Xianda Tang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @hmasim_ ,

  1. Using Power BI Semantic Model with CUBE Functions in Excel

Pros:

 

Flexibility: CUBE functions allow you to create highly customized reports that aren’t confined to the structure of PivotTables

Direct Data Access: You can directly access and manipulate data from the Power BI semantic model, leveraging the power of DAX measures

Dynamic Updates: Reports can be refreshed to reflect the latest data from the Power BI model

Integration: Seamless integration with Power BI ensures that you are using governed and secure data

Cons:

 

Complexity: Writing and managing CUBE functions can be complex and may require a steep learning curve

Performance: Large datasets or complex calculations can impact performance and slow down Excel

Maintenance: Maintaining and updating reports with CUBE functions can be more challenging compared to traditional PivotTables

 

  1. Disconnecting from CUBE Functions to Paste Data as Values

To share your Excel file without the CUBE functions, you can follow these steps:

 

Copy and Paste as Values:

Select the range of cells containing the CUBE functions.

Right-click and choose “Copy” or press Ctrl + C

Right-click on the same range or a new location and choose “Paste Special” > "Values"

Convert to Formulas:

If you have a PivotTable connected to the Power BI model, you can convert it to formulas using the OLAP tools:

Select any cell in the PivotTable.

Go to the “PivotTable Tools: Analyze” tab.

Click “OLAP Tools” > "Convert to Formulas"

Below is the link will help you:

www.spreadsheetclass.com

gorilla.bi

Best Regards,

Xianda Tang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.