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
vishal10306
Frequent Visitor

How to filter Power BI dataset in Excel before creating pivot tables out of it

Hi All,

 

I have a Power BI dataset published on Service with multiple country data. I am using this dataset in Excel to create some pivote tables. But I want to create a saperate Excel for each country. So is there any way to filter the data by country before creating the pivot tables. This filter should work like Page level filters in Power BI. I hope below illustration will help you to understand the requirement.

vishal10306_0-1667564293260.png

I can not use Pivot table filters and slicers to filter data on country level otherwise it will show other country's attribute in the pivote table filters.

 

Thanks,

 

1 ACCEPTED SOLUTION
v-xiaoyan-msft
Community Support
Community Support

Hi @vishal10306 ,

 

We can see the following sentence in the official documentation Start in Power BI with Analyze in Excel - Power BI | Microsoft Learn

vcaitlynmstf_0-1667793772627.png

 

This means that Analyze in excel is to import all the data into Excel, so the filter will not be applied in Excel.

 

As a workaroud,you could use export data feature.

1. First select the data of the country you need in the filter pane, then click on the visual options>select Export data.

vcaitlynmstf_5-1667794793993.png

 


2. There are three options to choose from, you can choose according to your needs.

 

vcaitlynmstf_3-1667794401374.png

 

Based on your situation, we recommend you to export underlying data, if this option is grayed out, you can turn on this function in Power BI Desktop > options and settings and republish it.

vcaitlynmstf_2-1667794251670.png

 

Then you will get a file like this:

vcaitlynmstf_6-1667794834941.png

 

 

If you want to see some restrictions related to export data. You can refer to this document.

Export data from a Power BI visualization - Power BI | Microsoft Learn

 

 

Best Regards,
Community Support Team _ Caitlyn

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

2 REPLIES 2
v-xiaoyan-msft
Community Support
Community Support

Hi @vishal10306 ,

 

We can see the following sentence in the official documentation Start in Power BI with Analyze in Excel - Power BI | Microsoft Learn

vcaitlynmstf_0-1667793772627.png

 

This means that Analyze in excel is to import all the data into Excel, so the filter will not be applied in Excel.

 

As a workaroud,you could use export data feature.

1. First select the data of the country you need in the filter pane, then click on the visual options>select Export data.

vcaitlynmstf_5-1667794793993.png

 


2. There are three options to choose from, you can choose according to your needs.

 

vcaitlynmstf_3-1667794401374.png

 

Based on your situation, we recommend you to export underlying data, if this option is grayed out, you can turn on this function in Power BI Desktop > options and settings and republish it.

vcaitlynmstf_2-1667794251670.png

 

Then you will get a file like this:

vcaitlynmstf_6-1667794834941.png

 

 

If you want to see some restrictions related to export data. You can refer to this document.

Export data from a Power BI visualization - Power BI | Microsoft Learn

 

 

Best Regards,
Community Support Team _ Caitlyn

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

 

 

AbbasG
Memorable Member
Memorable Member

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