Disabling filter pane aggregates in Power BI
source link: https://blog.crossjoin.co.uk/2023/04/16/disabling-filter-pane-aggregates-in-power-bi/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Disabling filter pane aggregates in Power BI
When you add a field to the filter pane in a Power BI report and select the “Basic filtering” filter type, in most cases you’ll see some numbers next to the field values:
These numbers are counts of the number of rows for each value in the table that the field is from. The query to get these counts is usually quite fast and inexpensive, but if you’re filtering on a field from a very large table (for example a fact table) and/or using DirectQuery mode that might not be true. For example, the screenshot above is taken from a DirectQuery dataset and here’s the SQL query that generates the counts shown:
Luckily there’s a way to disable these queries and stop the counts being displayed: set the Discourage Implicit Measures property to true on your dataset. The main purpose of this property is to stop the automatic creation of implicit measures when building Power BI reports; this makes sense when you’re using calculation groups, for example, and when you add a calculation group to your dataset then this property is set to true for you. You can also set Discourage Implicit Measures to true manually by connecting to the dataset using Tabular Editor:
Here’s what the filter pane looks like with Discourage Implicit Measures set to true:
Just to be safe, I think it makes sense to set Discourage Implicit Measures to true for all DirectQuery datasets to reduce the overall number of queries run against your data source and reduce the risk of a really expensive query being run. I don’t think seeing the counts adds much value for end users anyway.
[Thanks to Ed Hansberry for pointing out this behaviour and John Vulner for explaining it]
Recommend
-
58
README.md Collection
-
7
DRK 3 : Accordion Pane / Slider Examples Thursday, April 24, 2003 I have uploaded another example of some of the components included the
-
11
How do you change the div? Content based on the navigation pane advertisements I want to display my contact form when the user hovers over my...
-
3
Disabling cores to reduce the Pi Zero 2 W's power consumption by half October 28, 2021 By default, the new...
-
3
Android 101: how to tweak your multitasking pane You can use buttons or swipes By
-
7
Preview Pane Not Working in Windows 10? 8 Ways to Fix It By Shan Abdul Published 3 hours ago If you can't see the...
-
7
Microsoft releases File Explorer facelift in Windows 11
-
11
The Google Nest Hub Max just got a proper Bluetooth settings pane as part of its Fuchsia update By Arol Wright Published 45...
-
9
Microsoft introduces new Notifications pane in Outlook for Windows...
-
3
Releases Thunderbird 115 Supernova Preview: The New Folder Pane In
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK