Forum Discussion
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.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.
- ankitpatira10 years ago
Community Champion
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.
- sadhnabatra10 years agoFrequent Visitor
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?
- Anonymous10 years agoNot applicable
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