Deprecated: Creation of dynamic property CF\WordPress\DataStore::$logger is deprecated in /home1/cassanoc/public_html/bonbonsguide.com/wp/wp-content/plugins/cloudflare/src/WordPress/DataStore.php on line 23

Deprecated: Creation of dynamic property CF\WordPress\Proxy::$pluginAPI is deprecated in /home1/cassanoc/public_html/bonbonsguide.com/wp/wp-content/plugins/cloudflare/src/WordPress/Proxy.php on line 31

Deprecated: file_get_contents(): Passing null to parameter #2 ($use_include_path) of type bool is deprecated in /home1/cassanoc/public_html/bonbonsguide.com/wp/wp-content/plugins/codelights-shortcodes-and-widgets/codelights.php on line 20

Warning: session_start(): Session cannot be started after headers have already been sent in /home1/cassanoc/public_html/bonbonsguide.com/wp/wp-content/plugins/automatic-video-posts/vendor/ternstyle/wordpress/src/class/wordpress.php on line 53

Warning: Cannot modify header information - headers already sent by (output started at /home1/cassanoc/public_html/bonbonsguide.com/wp/wp-content/plugins/cloudflare/src/WordPress/DataStore.php:23) in /home1/cassanoc/public_html/bonbonsguide.com/wp/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home1/cassanoc/public_html/bonbonsguide.com/wp/wp-content/plugins/cloudflare/src/WordPress/DataStore.php:23) in /home1/cassanoc/public_html/bonbonsguide.com/wp/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home1/cassanoc/public_html/bonbonsguide.com/wp/wp-content/plugins/cloudflare/src/WordPress/DataStore.php:23) in /home1/cassanoc/public_html/bonbonsguide.com/wp/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home1/cassanoc/public_html/bonbonsguide.com/wp/wp-content/plugins/cloudflare/src/WordPress/DataStore.php:23) in /home1/cassanoc/public_html/bonbonsguide.com/wp/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home1/cassanoc/public_html/bonbonsguide.com/wp/wp-content/plugins/cloudflare/src/WordPress/DataStore.php:23) in /home1/cassanoc/public_html/bonbonsguide.com/wp/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home1/cassanoc/public_html/bonbonsguide.com/wp/wp-content/plugins/cloudflare/src/WordPress/DataStore.php:23) in /home1/cassanoc/public_html/bonbonsguide.com/wp/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Deprecated: Creation of dynamic property ternplugin\youtube_video::$post is deprecated in /home1/cassanoc/public_html/bonbonsguide.com/wp/wp-content/plugins/automatic-video-posts/vendor/ternstyle/plugin/src/class/youtube_video.php on line 64

Warning: Cannot modify header information - headers already sent by (output started at /home1/cassanoc/public_html/bonbonsguide.com/wp/wp-content/plugins/cloudflare/src/WordPress/DataStore.php:23) in /home1/cassanoc/public_html/bonbonsguide.com/wp/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home1/cassanoc/public_html/bonbonsguide.com/wp/wp-content/plugins/cloudflare/src/WordPress/DataStore.php:23) in /home1/cassanoc/public_html/bonbonsguide.com/wp/wp-includes/rest-api/class-wp-rest-server.php on line 1831
{"id":975,"date":"2019-02-01T21:48:14","date_gmt":"2019-02-02T04:48:14","guid":{"rendered":"https:\/\/bonbonsguide.com\/wp\/?p=975"},"modified":"2019-02-01T21:48:14","modified_gmt":"2019-02-02T04:48:14","slug":"msptda-19-calculate-dax-function-filter-context-allselected-keepfilters-50-examples","status":"publish","type":"post","link":"https:\/\/bonbonsguide.com\/wp\/blog\/2019\/02\/msptda-19-calculate-dax-function-filter-context-allselected-keepfilters-50-examples\/","title":{"rendered":"MSPTDA 19: CALCULATE DAX Function & Filter Context & ALLSELECTED & KEEPFILTERS (50 Examples)"},"content":{"rendered":"

All 20 files used in video are available in this zipped folder: http:\/\/bit.ly\/2BfCEjj
\nDownload file individually at class web site: http:\/\/bit.ly\/2TrKPQT
\npfd notes for Video #19: http:\/\/bit.ly\/2BeWn2M
\nComprehensive video about the CALCULATE DAX Function and how Filter Context works to calculate DAX Formulas in Power BI and in Excel Power Pivot.
\nComprehensive Microsoft Power Tools for Data Analysis Class, BI 348, taught by Mike Girvin, Excel MVP and Highline College Professor.
\nTopics:
\n1. (00:15) Introduction
\n2. (01:27) Filter Context, First Look
\n3. (04:40) CALCULATE to change Filter Context with a Boolean Filter
\n4. (05:10) CALCULATE and CALCULATETABLE DAX Functions
\n5. (06:28) What is a Boolean Filter?
\n6. (08:00) First look at the Overwrite Operator in CALCULATE. Merge the Internal Filter Context and External Filter Context
\n7. (09:45) CALCULATETABLE to change Filter Context with a Boolean Filter
\n8. (11:25) CALCULATE to perform Context Transition
\n9. (13:17) All Measures have a Hidden CALCULATE Function
\n10. (14:20) Boolean Filter is always converted to a FILTER & ALL DAX Function construction
\n11. (17:22) DAX Studio to look at FILTER and ALL Equivalent for a Boolean Filter
\n12. (20:00) VALUES rather than ALL in first argument of FILTER
\n13. (22:05) VALUES Function to bring a Variable into a Formula and use it as a condition for a Boolean Filter
\n14. (24:22) AND Logical Test \u2013 4 Examples
\n15. (26:18) Can NOT use two different columns in a Boolean Filters
\n16. (28:30) OR Logical Test Boolean Formulas
\n17. (30:33) Can NOT Directly Compare Two Columns as a Boolean Filter. Keystone Pricing Examples.
\n18. (33:20) DAX Studio to see how FILTER and ALL delivers a table where we directly compare two columns for a DAX Measure
\n19. (34:00) Can NOT use MIN or MAX or other aggregate functions as a condition for a Boolean Filter
\n20. (34:00) Frequency Distribution DAX Formula. Learn about the COUNTROWS Function
\n21. (43:07) ALL DAX Function & Grand Totals. Learn about the Remove Operator in ALL DAX Function when you use it in the Filter argument of CALCULATE
\n22. (47:42) Look at Data Model for Power BI File for looking more closely at the Overwrite Operator
\n23. (49:00) Overwrite Operation. Second look at the Overwrite Operator in CALCULATE. Merge the Internal Filter Context and External Filter Context into the Final Filter Context
\n24. (50:50) Reminder about ALL before we learn about ALLSELECTED. What is the problem that ALLSELECTED can solve?
\n25. (52:35) ALLSELECTED to create Grand Totals that respect the filtering in the PivotTable
\n26. (53:33) Context Transition is how ALLSELECTED gets to the Grand Total Cell Filter Context
\n27. (53:45) Hidden Context Transition for Measures in an Excel PivotTable or Power BI Visual
\n28. (54:45) ALLSELECTED and Context Transition, the Full Story
\n29. (56:17) Visual Example of when ALLSELECTED will not get back to the Filter Context of the Grand Total Cell in the Excel PivotTable or Power BI Visual
\n30. (57:18) Use ALLSELECTED DAX Function in CALCULATE Measures
\n31. (59:05) ALLSELECTED Functions works on Cross Tab Reports too !
\n32. (59:44) Example of Measure in Power BI Visual that uses ALLSELECTED and will not get back to the Filter Context of the Grand Total Cell Power BI Visual
\n33. (01:01:20) Look at new Data Model for next example
\n34. (01:02:20)First example of the KEEPFILTERS DAX Function to force an AND Logical Test rather than an Overwrite Operation
\n35. (01:06:55) What is a Complex Filter? What is a Complex Filter Reduction Error?
\n36. (01:08:56) How KEEPFILTERS can help solve a Complex Filter Reduction Error for Year Column in AVERAGEX.
\n37. (01:14:47) Why KEEPFILTERS is used in the New Quick Measure in Power BI
\n38. (01:16:33) How KEEPFILTERS can help solve a Complex Filter Reduction Error for Year Column and Month Column in CROSSJOIN in AVERAGEX
\n39. (01:18:30) Data Model solution to solve Complex Filter Reduction Error
\n40. (01:20:05) Determine if a filter is a complex filter with CROSSJOIN
\n41. (01:21:17) Expanded Table Concept & Relationships.
\n42. (01:26:50) Table Filters & Expanded Table as filters in the Filter argument of CALCULATE
\n43. (01:27:15) Expanded Table Filter with ALL Function. 2 Examples
\n44. (01:29:15) Table Filter to send a filter backwards across a Many-To-One Relationship. Great Visual for understanding this filter
\n45. (01:33:10) ALLEXCEPT DAX Function with an Expanded Column
\n46. (01:37:00) Examples of Time Intelligence Functions
\n47. (01:37:20) Measure for Revenue from Last Year. SAMPERIODLASTYEAR
\n48. (01:38:40) Measure for Revenue for Last Month. DATEADD and ISFILTERED DAX Functions
\n49. (01:41:32) Compare Excel and DAX Formulas
\n50. (01:43:10) Measure for % Change using IF, BLANK, DIVIDE and HASONEVALUE DAX Functions
\n51. (01:46:15) DAX Formula Evaluation Context Summary<\/p>\n