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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
sadhnabatra
Frequent Visitor

Importing Data models from power BI service into excel and using pivot tables

Hey,

 

I have created a report in Power Bi Desktop using direct query.In this report I have created few measures , columns and hierarchy.After publishing it online in Power BI service I connect to the data using Power Bi publisher for Excel .

 

In excel I get the dataset to be used in pivot table. But I notice that in the pivot table fields-- 

 

1)The hierarcy disappears.

2)I can only put measures in the Values section

3)"Add to Values" option is grayed out if I right click on a calculated column.

 

I would like to use these option in Excel when I import report from Power BI service online into Excel.

4 REPLIES 4
sadhnabatra
Frequent Visitor

Hey,

 

I have created a report in Power BI Desktop using direct query.It contains few measures, calculated columns and hierarchies in addition to thoses columns coming from SQL database. After publishing it online on Power BI Service  I connect to the data in Excel using the Power BI publisher for Excel.

 

In excel I see all the fields in the pivottable field list. But I am unable to do the following:

 

1) I cannot put calculated columns in the values section. The option "Move to Values" is grayed out when I right click.

2)Hierarchies disappear.

3)Can only add measure to the values section.

 

I would like to use all these in excel when I import a report from Power BI service. 

@sadhnabatra That could be limitation of using DirectQuery as when used with Import I can see hierarchies and calculated columns. Only measures can be added to Values section that is standard pivottable feature and so regardless of Import or DirectQuery. So change your method of connecting to data source from DirectQuery to Import. Also you can use Analyze in Excel option that you get once your dataset is published to power bi service.

@ankitpatira Thank you for the response.

 

By using import I am able to see hierarchies in excel but I cannot put calculated columns in the values section. Even the numeric columns that come from sql server cannot be put in the values section. 

 

My client wants to be able to form their own reports in excel using model imported from Power BI. How will this be possible if none of the numeric columns can be put in the values section?

Hi @sadhnabatra,

In excel, I am not able to put calculated columns in the values section, however, I am able to put numeric columns that come from SQL Server in the values section. Could you please post sample data of your numeric columns?

in addition, according to my knowledge, calculated column are always used in the ROWS, COLUMNS, or FILTERS area of PivotTable but not in the values section.

Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors