Тёмный

DAX for Power BI Part 5.1 - The Calculate, Filter and CalculateTable Functions 

WiseOwlTutorials
Подписаться 208 тыс.
Просмотров 12 тыс.
50% 1

By Andrew Gould
Download files here www.wiseowl.co.uk/power-bi/vi...
If you'd like to help fund Wise Owl's conversion of tea and biscuits into quality training videos you can join this channel to get access to perks:
/ @wiseowltutorials
Or you can click this link www.wiseowl.co.uk/donate?t=1 to make a donation. Thanks for watching!
This video shows you how to apply filters in your DAX measures using the Calculate, Filter and CalculateTable functions. You'll learn how to apply single and multiple filters, how to use the And, Or and In operators and how to work with numbers, text and dates. You'll also see the limitations of filter arguments in the Calculate and CalculateTable functions and how to nest the Filter function to get around these limitations.
Chapters
00:00 Topic list
00:46 Getting Started
02:31 Applying a Filter with the Calculate Function
05:02 Applying Multiple Filters
07:41 Combining Filters with the Or Operator
09:27 Using the IN Operator
10:51 Filters With Dates
12:37 Applying Date Filters with a Function
14:02 Referring to Multiple Columns in One Filter
16:54 Using the Filter Function to Reference Multiple Columns
19:03 Comparing Columns in a Filter Expression
20:56 Referring to Measures in Filters
22:56 Nesting Multiple Filter Functions
24:27 A New Example with AverageX
26:03 Using the CalculateTable Function
28:19 Limitations of Filters in CalculateTable
Visit www.wiseowl.co.uk for more online training resources in Microsoft Excel, Microsoft Power BI, DAX, VBA, Python, Visual C#, Microsoft SQL Server, SQL Server Reporting Services SSRS, SQL Server Integration Services SSIS, Microsoft Access and more!

Опубликовано:

 

5 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 43   
@darenlim6467
@darenlim6467 7 месяцев назад
New version of Power BI is able to use OR across multiple columns. No need to use FILTER anymore. But good learning practise on understanding the use of FILTER function. Thank you.
@WiseOwlTutorials
@WiseOwlTutorials 7 месяцев назад
Indeed it is - Power BI and DAX videos become out of date so quickly!
@nikakalichava8012
@nikakalichava8012 Год назад
Finally I have time to continue the series. Thanks again, Mr. Owl!
@WiseOwlTutorials
@WiseOwlTutorials Год назад
Good to see you again Nika!
@samirmishra507
@samirmishra507 2 года назад
Thanks Andrew for this. Please make video on other Table Functions like Summarize, Cross join and union and others use
@WiseOwlTutorials
@WiseOwlTutorials 2 года назад
Hi Samir! Yes, I will, those topics are on the list of DAX videos to create. Thanks for watching!
@christophmeirich5928
@christophmeirich5928 2 года назад
@@WiseOwlTutorials Thx in advance, Andrea!!!! Greetings from germany Christoph 👏 👏 👏 👏 👏
@jasonturingan3279
@jasonturingan3279 Год назад
Thanks sir Andrew for all the tutorials in DAX. You are amazing. You really made it very simple to follow DAX. I hope you cover all the DAX function imbedded inside the CALCULATE function in your future videos.
@WiseOwlTutorials
@WiseOwlTutorials Год назад
Thanks Jason, happy to hear that you've been enjoying the DAX series. More videos are on the way!
@garrybye4415
@garrybye4415 2 года назад
Excellent video. You’ve made it all very simple to follow, thanks
@WiseOwlTutorials
@WiseOwlTutorials 2 года назад
Thanks for watching!
@padynz9869
@padynz9869 2 года назад
Great examples and Excellent Clarity. Thank you very much.
@WiseOwlTutorials
@WiseOwlTutorials 2 года назад
You're very welcome, thanks for watching!
@rajkumarrajan8059
@rajkumarrajan8059 9 месяцев назад
This is Legendary!!!!
@WiseOwlTutorials
@WiseOwlTutorials 9 месяцев назад
Thanks!
@syedashhar6334
@syedashhar6334 5 месяцев назад
Thanks for making such an awesome video! It covered all possible combination for Filters with Calculate. This video is a gem🔸🔸
@WiseOwlTutorials
@WiseOwlTutorials 4 месяца назад
Thank you so much for the kind comments and for watching!
@ItsWithinYou
@ItsWithinYou 2 года назад
Simple yet very effective! Many thanks for sharing this video!
@WiseOwlTutorials
@WiseOwlTutorials 2 года назад
Thanks! Happy to hear you found it useful!
@ellukayou
@ellukayou 2 года назад
A complete guide. Love it.
@WiseOwlTutorials
@WiseOwlTutorials 2 года назад
Thanks Luciano!
@siddharthrao3115
@siddharthrao3115 2 года назад
I like the accent more than the videos! Just Kidding XD Thank you for the fantastic content man!
@WiseOwlTutorials
@WiseOwlTutorials 2 года назад
😄 happy to hear that you enjoyed it, thanks for watching!
@mePrafull
@mePrafull 6 месяцев назад
thank you very much for sharing the detailed explaination
@WiseOwlTutorials
@WiseOwlTutorials 6 месяцев назад
You're very welcome, thank you for watching!
@Coglitics
@Coglitics 9 месяцев назад
Bravo!!!
@WiseOwlTutorials
@WiseOwlTutorials 9 месяцев назад
Thanks!
@stickercode
@stickercode 2 года назад
Mr. Gould, in the section of comparing colums in a filter expression, I managed to handle it without adding "filter" function by this code; // avgruntime of profitable movies = CALCULATE(AllMeasures[Avg runtime], Film[BoxOfficeDollars] > Film[BudgetDollars]) // It let me type this without any error warning and calculated the whole expression. I think it is because of an upgrade by powerBI.
@WiseOwlTutorials
@WiseOwlTutorials 2 года назад
Yes, that's correct, DAX is frequently changing!
@jeetborooah
@jeetborooah 2 года назад
@@WiseOwlTutorials I believe that even the CALCULATE TABLE function has probably changed as well as the Avg profits/loss only formula works in calculate table function for me as shown below: Avg Profit Only = AVERAGEX( CALCULATETABLE( Film, not ISBLANK(Film[BoxOfficeDollars]), not ISBLANK(Film[BudgetDollars]), (Film[BoxOfficeDollars] > Film[BudgetDollars]) ), Film[BoxOfficeDollars] - Film[BudgetDollars] ) Thanks for the brilliant video and great work!
@WiseOwlTutorials
@WiseOwlTutorials 2 года назад
@@jeetborooah Yes, agreed!
@mePrafull
@mePrafull 6 месяцев назад
29:21 , in newer version of POwerBI CALCULATETABLE( Film , NOT ISBLANK(Film[BoxOfficeDollars]) , NOT ISBLANK(Film[BudgetDollars]) , Film[BoxOfficeDollars] > Film[BudgetDollars] ) the column references ( Film[BoxOfficeDollars] > Film[BudgetDollars]) are accepted
@WiseOwlTutorials
@WiseOwlTutorials 6 месяцев назад
Yes indeed!
@yousseflayechi8846
@yousseflayechi8846 5 месяцев назад
You can do this with sql or excel but why should we learn this ?
@TaiTran-ud2jh
@TaiTran-ud2jh 7 месяцев назад
I have a question why don't we use filter ( film, [avg run time] >120) but instead filter ( genre, [avg run time] >120) in 22:08
@WiseOwlTutorials
@WiseOwlTutorials 7 месяцев назад
Hi! Because we're interested in returning the genres where the average run time of all the films in the genre is greater than 120 - we need to evaluate the [Avg Run Time] measure for each row of the Genre table. Filtering the Film table would return a table of films where the run time is greater than 120. I hope that helps!
@HaiderAli-vt8wn
@HaiderAli-vt8wn Год назад
Great stuff, membership icon and link not working , is it available in Pakistan?
@WiseOwlTutorials
@WiseOwlTutorials Год назад
Hello Haider! RU-vid does not currently list Pakistan as an available location for channel memberships support.google.com/youtube/answer/7636690?hl=en-GB#zippy=%2Cavailability
@learnenglishgeo6622
@learnenglishgeo6622 8 месяцев назад
how to get a member ?
@_huinorman9487
@_huinorman9487 2 года назад
Can u do the fifo calculations in power bi?
@WiseOwlTutorials
@WiseOwlTutorials 2 года назад
Try this community.powerbi.com/t5/Desktop/Using-FIFO-in-calculation/td-p/1124600
@RobsondeAOliveira
@RobsondeAOliveira 2 года назад
Hi! Website certificate expired!
@WiseOwlTutorials
@WiseOwlTutorials 2 года назад
Indeed it has, thanks for the heads up Robson, I've informed the people responsible!
Далее
БАТЯ И СОСЕД😂#shorts
00:59
Просмотров 2,2 млн
Китайка Шрек всех Сожрал😂😆
00:20
ALL vs ALLSelected in Power BI and DAX
10:18
Просмотров 10 тыс.
Using RELATED and RELATEDTABLE in DAX
18:04
Просмотров 38 тыс.
Understanding CALCULATE in DAX: Filters
18:01
Просмотров 18 тыс.
БАТЯ И СОСЕД😂#shorts
00:59
Просмотров 2,2 млн