SQLBI
SQLBI
  • 506
  • 8 697 009
Filter context in DAX explained visually
A visual representation of the filter context in DAX can help understand the conceptual model.
Article and download: sql.bi/843174?aff=yt
How to learn DAX: www.sqlbi.com/guides/dax/?aff=yt
The definitive guide to DAX: www.sqlbi.com/books/the-definitive-guide-to-dax-2nd-edition/?aff=yt
Переглядів: 10 841

Відео

Introducing the 3-30-300 rule for better reports
Переглядів 21 тис.14 днів тому
A simple approach that you can apply to improve your reports and dashboards, not only in Power BI. Article and download: sql.bi/840130?aff=yt How to learn DAX: www.sqlbi.com/guides/dax/?aff=yt The definitive guide to DAX: www.sqlbi.com/books/the-definitive-guide-to-dax-2nd-edition/?aff=yt
Understanding apply semantics for window functions in DAX
Переглядів 6 тис.Місяць тому
Apply semantics is a new way of computing table expressions when multiple rows are selected in DAX window functions. Article and download: sql.bi/836012?aff=yt How to learn DAX: www.sqlbi.com/guides/dax/?aff=yt The definitive guide to DAX: www.sqlbi.com/books/the-definitive-guide-to-dax-2nd-edition/?aff=yt
Writing DAX with ChatGPT-4o - Unplugged #58
Переглядів 19 тис.Місяць тому
One year later, another special unplugged video where we write DAX measures with the new ChatGPT-4o! Previous video with ChatGPT-4: www.sqlbi.com/tv/writing-dax-with-chatgpt-4-unplugged-50/ Note: the first 20 seconds and the end of this video has a focus issue, sorry for that! Read more about the "unplugged" format: www.sqlbi.com/blog/marco/2021/01/09/the-unplugged-video-series-on-sqlbi-youtube...
Best practices for using KEEPFILTERS in DAX
Переглядів 9 тис.Місяць тому
Best practices for deciding when to use (and when not to use) KEEPFILTERS in CALCULATE filter arguments. Article and download: sql.bi/837707?aff=yt How to learn DAX: www.sqlbi.com/guides/dax/?aff=yt The definitive guide to DAX: www.sqlbi.com/books/the-definitive-guide-to-dax-2nd-edition/?aff=yt
Comparing cumulative metrics for events with different start dates
Переглядів 7 тис.2 місяці тому
How to compare time series that occur in different periods by standardizing the timelines to days since a specific event. Article and download: sql.bi/836030?aff=yt How to learn DAX: www.sqlbi.com/guides/dax/?aff=yt The definitive guide to DAX: www.sqlbi.com/books/the-definitive-guide-to-dax-2nd-edition/?aff=yt
Using EXPAND and COLLAPSE in visual calculations
Переглядів 4,6 тис.2 місяці тому
See when EXPAND and COLLAPSE are required to obtain the correct result with visual calculations in Power BI. Article and download: sql.bi/833902?aff=yt How to learn DAX: www.sqlbi.com/guides/dax/?aff=yt The definitive guide to DAX: www.sqlbi.com/books/the-definitive-guide-to-dax-2nd-edition/?aff=yt
Use scatterplots to find details in Power BI reports
Переглядів 9 тис.2 місяці тому
Bubble plot, quadrant plot, volcano plot, joint plot, swarm plot: they are all types of scatterplot visuals to make more effective #powerbi reports. Learn how to use them in this video from Kurt Buhler! Article and download: sql.bi/832967?aff=yt How to learn DAX: www.sqlbi.com/guides/dax/?aff=yt The definitive guide to DAX: www.sqlbi.com/books/the-definitive-guide-to-dax-2nd-edition/?aff=yt 00:...
Revolutionizing Power BI: Introducing the Ultimate Formula Language
Переглядів 10 тис.2 місяці тому
Be the first to learn about the new #dax language extension, which will forever transform how we write #powerbi formulas for hierarchical calculations! Read the article: sql.bi/832843?aff=yt How to learn DAX: www.sqlbi.com/guides/dax/?aff=yt The definitive guide to DAX: www.sqlbi.com/books/the-definitive-guide-to-dax-2nd-edition/?aff=yt
Introducing EXPAND and COLLAPSE for visual calculations in Power BI
Переглядів 7 тис.2 місяці тому
Introduction to the two basic visual context navigation functions in DAX: EXPAND and COLLAPSE. There functions are used in Power BI visual calculations. Article and download: sql.bi/833882?aff=yt How to learn DAX: www.sqlbi.com/guides/dax/?aff=yt The definitive guide to DAX: www.sqlbi.com/books/the-definitive-guide-to-dax-2nd-edition/?aff=yt
Vpax Obfuscator and DAX Optimizer - Unplugged #57
Переглядів 2,2 тис.3 місяці тому
Learn how to use the new Vpax obfuscator to send anonymized VPAX files to DAX Optimizer. Read more: www.tabulartools.com/blog/supporting-obfuscation-in-dax-optimizer/ Disclaimer of a potential conflict of interest: Marco Russo is one of the authors of DAX Optimizer and a founder of Tabular Tools, the company that produces and distributes it. Read more about the "unplugged" format: www.sqlbi.com...
Introducing VISUAL SHAPE for visual calculations in Power BI
Переглядів 20 тис.3 місяці тому
Introducing VISUAL SHAPE for visual calculations in Power BI
DAX Optimizer overview - Unplugged #56
Переглядів 8 тис.3 місяці тому
DAX Optimizer overview - Unplugged #56
Improve data labels with format strings
Переглядів 8 тис.3 місяці тому
Improve data labels with format strings
Introducing SQLBI Days
Переглядів 2,5 тис.3 місяці тому
Introducing SQLBI Days
DAX limitations with row level security RLS
Переглядів 5 тис.3 місяці тому
DAX limitations with row level security RLS
Optimizing time intelligence in DirectQuery
Переглядів 5 тис.4 місяці тому
Optimizing time intelligence in DirectQuery
Differences between DATEADD and PARALLELPERIOD in DAX
Переглядів 7 тис.4 місяці тому
Differences between DATEADD and PARALLELPERIOD in DAX
Using tuple syntax in DAX expressions
Переглядів 8 тис.5 місяців тому
Using tuple syntax in DAX expressions
Circular dependencies and relationships - Unplugged #55
Переглядів 5 тис.5 місяців тому
Circular dependencies and relationships - Unplugged #55
Replacing relationships with join functions in DAX
Переглядів 11 тис.5 місяців тому
Replacing relationships with join functions in DAX
What happened in DAX in 2023
Переглядів 6 тис.5 місяців тому
What happened in DAX in 2023
Using join functions in DAX
Переглядів 10 тис.6 місяців тому
Using join functions in DAX
Preparing a data model for Sankey Charts in Power BI
Переглядів 15 тис.6 місяців тому
Preparing a data model for Sankey Charts in Power BI
Computing accurate percentages with row level security in Power BI
Переглядів 7 тис.7 місяців тому
Computing accurate percentages with row level security in Power BI
Unboxing DAX Query View in Power BI - Unplugged #54
Переглядів 33 тис.7 місяців тому
Unboxing DAX Query View in Power BI - Unplugged #54
Computing MTD, QTD, YTD in Power BI for the current period
Переглядів 17 тис.7 місяців тому
Computing MTD, QTD, YTD in Power BI for the current period
Optimizing callbacks in a SUMX iterator
Переглядів 6 тис.8 місяців тому
Optimizing callbacks in a SUMX iterator
Using field parameters and calculation groups for conditional formatting
Переглядів 16 тис.8 місяців тому
Using field parameters and calculation groups for conditional formatting
Finding products without sales by using DAX
Переглядів 8 тис.8 місяців тому
Finding products without sales by using DAX

КОМЕНТАРІ

  • @ceciliocbaroperez8815
    @ceciliocbaroperez8815 12 годин тому

    Marvellous explanation! Many thanks!

  • @RubenCarlosCalderonValladares
    @RubenCarlosCalderonValladares 15 годин тому

    Very clear explanation of an often bypassed topic by beginners. Excellent content as always!

  • @user-lm5wb8vi1x
    @user-lm5wb8vi1x День тому

    Finished watching

  • @sindibad602
    @sindibad602 День тому

    Finally the so waited pedagogical paradigme shift from Sqlbi

  • @radu_sirbu
    @radu_sirbu День тому

    great video! please, keep doing these visual representations.

  • @ivanrybalchenko7225
    @ivanrybalchenko7225 2 дні тому

    Brilliant explanation!

  • @allabout1135
    @allabout1135 2 дні тому

    Good video and and agree with idea in behind, but what about Power BI tool it self? Is it easy to learn? Is it clear with what to start learn Power BI? Is it intuitive and how many exceptions in functionality need to keep in mind when You start to use it. So what is 20/80 needed to know in Power BI to get in average knowledge? Can be applied rules like 3/30/300 to Power BI tool it self? Sorry for to much questions above but its not fair that to create something simple and easy to read by going through madness to create it.

  • @huseyinburaktasci1638
    @huseyinburaktasci1638 2 дні тому

    Excellent tutorial Kurt! Thanks to your clear guidance, it was easy to grasp how the reports could be more efficient and effective. Thank you for the content. Much appreciated!! Big fan of you guys :)

  • @zxccxz164
    @zxccxz164 3 дні тому

    what is the purpose of using this: ISSELECTEDMEASURE (xxxx If you had another table and put total quantity on it, total quantity measure still changes. You have to stop interactions between the slicer and new table.

  • @TomGee-n1n
    @TomGee-n1n 3 дні тому

    How do you filter a virtual table inside a measure using a selectedvalue from a disconnected slicer? The filtered table returns no data - as if the selectedvalue were returning multiple values - but it is not! If I put a default value in the selectedvalue variable it works as expected, and likewise if I return just the selectedvalue variable - it dynamically shows the value selected in the slicer. Yet the selected value doesn't seem to be recognized when used to filter the virtual table. Help!?

    • @SQLBI
      @SQLBI 16 годин тому

      SELECTEDVALUE returns a single value, you should use VALUES to get all the selected values. Indeed, SELECTEDVALUE internally uses VALUES; as described in dax.guide/selectedvalue/

  • @TomGee-n1n
    @TomGee-n1n 3 дні тому

    why can't I define a variable using selectedvalue from a disconnected slicer table to be used to filter a virtual table? It seems to think more than one value is being returned in the variable, when it is not. If I add a default value it works perfectly. If I return the selectedvalue variable it works perfectly, showing the selected value from the slicer. But when I try to filter the table using the selected value variable it returns no data. I know this is not a new issue, I just don't understand how to get around it! Help me Alberto - you're my only hope!

  • @TomGee-n1n
    @TomGee-n1n 3 дні тому

    How do you limit selectedvalue to return only one value so that it can be used to filter a virtual table?

  • @baskis69
    @baskis69 3 дні тому

    Un video spettacolare... Marco spiega in modo magistrale¡¡¡

  • @GabrielCarreraBloise
    @GabrielCarreraBloise 3 дні тому

    awesome

  • @sopauljauck4163
    @sopauljauck4163 4 дні тому

    Thank you for the video. I was able to follow along until you brought in Tabular Editor because I don't have it.

    • @SQLBI
      @SQLBI 3 дні тому

      Tabular Editor 2 is free and open source: www.sqlbi.com/tools/tabular-editor/

    • @sopauljauck4163
      @sopauljauck4163 3 дні тому

      @@SQLBI Thank you for the reply. Unfortunately we cannot install without approval and without admin credential. I do have a separate question. I'm struggling to make this appen in Powerbi. I need to create a graph that allows users to enter range 1-5 of years. Then they select different type of periods last month, last 6 months, last quarter, last year. The result on the graph is to show previous comparisons going back the many years selected in the range. Do you have a vid or a guide that you can recommend? I'm only seeing yoy or 2 comparisons in my searches. Thank you in advance.

  • @IsaiahJones-ty1tx
    @IsaiahJones-ty1tx 4 дні тому

    Absolute legends! This is a wonderful resource to learn from and especially to share with new developers!

  • @RobertoStaltari
    @RobertoStaltari 4 дні тому

    Let's not forget that if the year used from a calendar dimension table is sorted by some other column of that table, also this sorting column is part of the filter. I learned this lesson in the hard way 😢

  • @borisev1097
    @borisev1097 5 днів тому

    Great explanation as always Marco. What is the reason in case I want to calculate sales amount that is not blue, but want to use color slicer and that gives me a static value and not filtered by the color slicer. Not Blue Measure = CALCULATE([Sales Amount], 'Product'[Color] <> "Blue"). I had to use KEEPFILTERS or FILTER in order to work and use the slicer. Thanks!

  • @Han-ve8uh
    @Han-ve8uh 5 днів тому

    This video shows how to make changes to filter contexts, but how do we know what the initial filter context is? Is it always explicitly defined in a measure? I'm concerned certain visuals or default summarization settings implicitly define contexts that can't be easily seen by clicking measures and seeing their dax formulas. For example if i come across a visual, shoui ld look in the fields to find definitions of measures to understand the starting context? How to make sure all existing filters are accounted for exhaustively? What other places can they exist in? (This video shows filter pane is a source of existing context too) For overwriting/keeping contexts does it propagate through the entire lineage of definitions? For example 16:06 shows Bnechmark 2017 measure depends on another measure Sales 2017 which depends on Sales Amount.

    • @SQLBI
      @SQLBI 3 дні тому

      The purpose of DAX is to enable writing measures that work in any context. You can explore the filter context for debugging purposes with the debugger integrated in Tabular Editor 3, or by creating a special measure in the tooltip (DAX Studio has a feature to create it automatically) as described in www.sqlbi.com/articles/displaying-filter-context-in-power-bi-tooltips/

  • @avecNava
    @avecNava 5 днів тому

    Filter Context NOT a myth anymore. #SQLBI team never disappoints us.

  • @Pakaamtbencho
    @Pakaamtbencho 5 днів тому

    The faster u create the file the stringent deadline will become.💀💀

  • @erinfield1943
    @erinfield1943 5 днів тому

    7:45- why does Product to Brand need to be bi-directional? We have this second kind of bridge table in real estate: a borrower can have multiple collateral, and conversely, a collateral can be connected to multiple loan numbers (ie. pari-passu loans). So you need an intermediary loan-to-property code table between the Loan and Property tables. This is one-to-many-to-many-to-one, and it's uni-directional and it works just fine for Loan to filter Property.

  • @erinfield1943
    @erinfield1943 5 днів тому

    3:00- bridge table type 1 (new information) (one-many--many-one) 7:30- bridge table type 2 (no new information) (many-one-one-many) (won't slow down your model if there are only a few hundred rows)

  • @Bremerhaven_Rocks
    @Bremerhaven_Rocks 5 днів тому

    Love those visual representation. Truly a picture is worth a thousand words. Combined with clear and precise explanation. Priceless.

  • @Davide73
    @Davide73 5 днів тому

    Should we always use KEEPFILTERS? My question is based on the assumption we cannot control if an user adds an external filters, for example just for filter a location or an year... if in our measure we use the "same filter", we overwrite the user filter... so isn't it safer to always use it?

    • @SQLBI
      @SQLBI 5 днів тому

      It depends, see www.sqlbi.com/articles/best-practices-for-using-keepfilters-in-dax/

    • @Davide73
      @Davide73 5 днів тому

      @@SQLBI Thank you!

  • @manggnorora
    @manggnorora 5 днів тому

    Thank you so much, it helped clear up a lot of confusion about filters.

  • @SivaKumar-hg4ps
    @SivaKumar-hg4ps 5 днів тому

    Thank you for the great lecture sir. Sir, I have one doubt. Above this, it is very useful to see month-wise. I tried the above concept month-wise and it successfully worked. But if I filter by 'Date[Date] in sales amount by date wise in chart, it does not work. Will we be able to find date-wise information for the above concept, sir? For example, if I clicked June 2024 in Slicer, the table showed the last 3 month values. If I filtered by 'Date'[Date] in the date-wise sales amount in the chart, the matrix table did not show the date-wise filtered value. It shows only that month wise Value . Kindly, give me solution for this concept Sir.

  • @ivanak7149
    @ivanak7149 5 днів тому

    hey, I really like your videos. very useful, thanks for sharing 🙂

  • @geopolityk1160
    @geopolityk1160 5 днів тому

    This is beatiful. You are stepping up your visauls game. Way to go, looking forward to more!

  • @lmblancoancos
    @lmblancoancos 5 днів тому

    Thank you very much Marco. Fantastic explanation as always 😄

  • @jorrellbonner5303
    @jorrellbonner5303 5 днів тому

    Wow. I never comment on videos, but this one was actually very, very helpful. Yes. More colorful, simple visuals to convey complex info. :) Kudos!

  • @gvitullib
    @gvitullib 5 днів тому

    Thanks for this article/video Marco. Filter context can be complicated, even for expert Dax developers. Articles like this are a must, getting back to the basics.

  • @salosteysv
    @salosteysv 6 днів тому

    Thanks for such a detailed explanation! Very useful and interesting.

  • @manikantabalusa6896
    @manikantabalusa6896 6 днів тому

    Row context visually please 😂

    • @SQLBI
      @SQLBI 5 днів тому

      Coming in July/August!

  • @marcelolacoppola7163
    @marcelolacoppola7163 6 днів тому

    Great video !!! Thanks for sharing, Marcelo, Buenos Aires, Argentina

  • @faisalag9611
    @faisalag9611 6 днів тому

    Nice explanation. Can we have row context and context transition videos in same format. Thank you

    • @SQLBI
      @SQLBI 5 днів тому

      Coming in July/August!

  • @lionels839
    @lionels839 6 днів тому

    Alléluia !!

  • @dg_calderon
    @dg_calderon 6 днів тому

    me costo un poco seguir el video ya que lo veo con subtitulos en español, asi que lo repeti y detuve hasta entender un poco... seria muy bueno que se pudiera traducir los videos a diferentes idiomas. Saludos desde Colombia.

    • @SQLBI
      @SQLBI 5 днів тому

      We evaluated that, but it's too expensive for now. UA-cam will likely implement not too far in the future.

  • @th3n0rthsid3
    @th3n0rthsid3 6 днів тому

    The visuals (Whiteboard) really helped, thanks!

  • @GuiSaviolo
    @GuiSaviolo 6 днів тому

    I didn't quite understand the last example. Are the net price items with value above 600 going to be used in the calculation?

    • @SQLBI
      @SQLBI 5 днів тому

      No, because all filters (the orange one and the blue one) are active at the same time.

  • @fpa89
    @fpa89 6 днів тому

    Very nice video and well produced

  • @bradj229
    @bradj229 6 днів тому

    Thanks for taking the time to test ChatGRT-4o vs DAX. It's one thing for a typical developer to give their opinion, it's another for the Godfather to do so 🙂.

  • @marcellinehouabolet8273
    @marcellinehouabolet8273 6 днів тому

    Fantastic!

  • @DeronHuskey
    @DeronHuskey 6 днів тому

    I still get wrapped around the axle sometimes when it comes to filter context. This video helped to clear a few things up. Thanks.

  • @JBartlett_DMU
    @JBartlett_DMU 6 днів тому

    Wow, I think I might actually kinda understand this concept now. 😅

  • @skv4611
    @skv4611 6 днів тому

    Cheers sqlbi team, these explanations are mind-blowing. All the time in my bi journey, i could make sense of the actions behind the scenes of the filter context but felt hard to contemplate. Today it's head on.

  • @prasadp2878
    @prasadp2878 6 днів тому

    Awesome explanation. Loved it.❤❤

  • @datareggibi
    @datareggibi 6 днів тому

    bravo¡ SQLBI

  • @carltonseymour869
    @carltonseymour869 6 днів тому

    What an awesome graphical explanation of Filter context. Key is the Initial context and then the Target context and then using the correct CALCULATE measure

  • @adityakumarsrivastav3677
    @adityakumarsrivastav3677 6 днів тому

    Most awaited video. BDW I have read your DAX book. Thanks❤