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
CloudMonkey
Post Prodigy
Post Prodigy

Create pivot table based on Power BI dataset

Hi,

 

Please can you tell me how to create a pivot table (or power pivot table?) based on a Power BI dataset?

 

Or is there a way to export the mapped dataset as a flat file?

 

Thanks,

 

CM

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@CloudMonkey

Did you use "Analyse in Excel" option as I've proposed?

If so - then Pivot should work.

You can only drag a Measure to the Values section - so create a measure, for instance:

In your FactTable there's a "Sales" column that contains the sales amount.

First make sure it is Decimal, then add a new Measure:

TotSales = SUM(FactTable[Sales])

That's it.

Now you can drag "TotSales" into the Values section.

It should work

Michael

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

You can accomplish this only if you publish your dataset to the PowerBI.com service.

There, click on the options for dataset (...) and choose "Analyse in Excel"

You will probably need to install some driver (it'll guide you through - it is simple) and then it'll download a .odc connection file which you can open in excel and see Pivot connected to the service.

Good luck!

Michael

You can accomplish this only if you publish your dataset to the PowerBI.com service.
There, click on the options for dataset (...) and choose "Analyse in Excel"
You will probably need to install some driver (it'll guide you through - it is simple) and then it'll download a .odc connection file which you can open in excel and see Pivot connected to the service.
Good luck!
Michael

 

 

I've just tried this and I'm unable to drag a field into the values section of the pivot table. The numbers in this field are stored as integers (I see the numbers symbol in the column heading) in the Power BI database, but if I drag the field into the rows section of the pivot table and test the values with the "ISTEXT" formula the result is "TRUE". Therefore I suspect the pivot table isn't allowing the field into the values section of the pivot table because the pivot table thinks the field is a text field? Any idea how to fix?

 

Thanks,

 

CM

Anonymous
Not applicable

@CloudMonkey

Did you use "Analyse in Excel" option as I've proposed?

If so - then Pivot should work.

You can only drag a Measure to the Values section - so create a measure, for instance:

In your FactTable there's a "Sales" column that contains the sales amount.

First make sure it is Decimal, then add a new Measure:

TotSales = SUM(FactTable[Sales])

That's it.

Now you can drag "TotSales" into the Values section.

It should work

Michael

Hi @CloudMonkey,

 

As you mentioned, all the fields stored in Power BI dataset will be recognized as Text type after being exported to pivot table.

 

Based on my test, we are not able to drag original fields into values section, but we can drag measures into values section. So, the workaround can be creating measures to get your desired values in advance.

 

Besides, you can submit your feedback to Microsoft at this page: https://ideas.powerbi.com/forums/265200-power-bi-ideas. And you can post the link back so that I can vote it for you.

 

Regards,
Yuliana Gu

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

There's an unsupported way to connect Excel to a local pbix file, you'll have to keep PBI desktop open alongside Excel:

http://exceleratorbi.com.au/excel-workbook-connection-local-power-bi-desktop/

------------------------------------------------
1. How to get your question answered quickly - good questions get good answers!
2. Learning how to fish > being spoon-fed without active thinking.
3. Please accept as a solution posts that resolve your questions.
------------------------------------------------
BI Blog: Datamarts | RLS/OLS | Dev Tools | Languages | Aggregations | XMLA/APIs | Field Parameters | Custom Visuals

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.