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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
DineshDwilco
Frequent Visitor

Remove Filters on all pages in Dashboard Report?

Hi all, 

I Did Dashboard Report which is multiple organization users can access respective information. But its works fine whatever Organzation i passed i get result correctly but only one problem when i display the report its shown "lng_organizationID" field how i remove from "Filters on all pages" or need to change my approch? thanks for advice

  

var organizationID = @Convert.ToInt32(Session["OrganizationID"]);

const filterOrganization = {
$schema: "http://powerbi.com/product/schema#basic",
target: {
table: "Master",
column: "lng_OrganizationID",
//isLockedInViewMode: true,
//isHiddenInViewMode: true
},
operator: "Is",
values: [organizationID],
filterType: models.FilterType.BasicFilter,
requireSingleSelection: true

};

var config = {
type: 'report',
tokenType: models.TokenType.Embed,
accessToken: accessToken,
embedUrl: embedUrl,
id: embedReportId,
permissions: models.Permissions.All,
filters: [filterOrganization],
settings: {
filterPaneEnabled: true,
navContentPaneEnabled: false
}
};

pbi code.png

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

Hi, @DineshDwilco 

 

The following document may be useful to you
Remove the report filters

 

Remove the filters applied to all pages.

await report.updateFilters(models.FiltersOperation.RemoveAll);

vangzhengmsft_0-1638249082941.png

 

Best Regards,
Community Support Team _ Zeon Zheng

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

3 REPLIES 3
v-angzheng-msft
Community Support
Community Support

Hi, @DineshDwilco 

 

The following document may be useful to you
Remove the report filters

 

Remove the filters applied to all pages.

await report.updateFilters(models.FiltersOperation.RemoveAll);

vangzhengmsft_0-1638249082941.png

 

Best Regards,
Community Support Team _ Zeon Zheng

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

v-angzheng-msft
Community Support
Community Support

Hi, @DineshDwilco 

 

May I ask if your problem has been solved? Is the above post helpful to you?

If  it does, could you please mark the post which help as Answered? It will help the others in the community find the solution easily if they face the same problem with you. Thank you.😀

 

 

Best Regards,
Community Support Team _ Zeon Zheng

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

v-angzheng-msft
Community Support
Community Support

Hi, @DineshDwilco 

 

 What does the above code do and where is it being used? 


If you want no data to be filtered, you can select ALL.

vangzhengmsft_1-1636706292980.png

 

If you want to remove it from all page filtering level, then you can click Edit in the service, and then remove it from the report.

vangzhengmsft_2-1636706368047.png

 

Best Regards,
Community Support Team _ Zeon Zheng


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

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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