Тёмный

DAX Fridays!  

Curbal
Подписаться 135 тыс.
Просмотров 14 тыс.
50% 1

Do you know the difference between zeros, nulls and empties?? Lets take a look at that so we can understand why we the power bi team introduced a new comparison operation, kindof... #daxfridays #curbal #powerbi
Get Northwind Dataset: • Northwind data source:...
Link to DAX Fridays survey: bit.ly/2MMM4KK
Here you can download all the pbix files: curbal.com/donwload-center
SUBSCRIBE to learn more about Power and Excel BI!
/ @curbalen
☼☼☼☼☼☼☼☼☼☼
POWER BI COURSES:
Want to learn Power BI? How about you take one of our courses? Here you can find the available courses:
curbal.com/courses-overview
☼☼☼☼☼☼☼☼☼☼
ABOUT CURBAL:
Website: www.curbal.com
Contact us: www.curbal.com/contact
▼▼▼▼▼▼▼▼▼▼
If you feel that any of the videos, downloads, blog posts that I have created have been useful to you and you want to help me keep on going, here you can do a small donation to support my work and keep the channel running:
curbal.com/product/sponsor-me
Many thanks in advance!Here you can download all the pbix files: curbal.com/donwload-center
▲▲▲▲▲▲▲▲▲▲
Our PLAYLISTS:
- Join our DAX Fridays! Series: goo.gl/FtUWUX
- Power BI dashboards for beginners: goo.gl/9YzyDP
- Power BI Tips & Tricks: goo.gl/H6kUbP
- Power Bi and Google Analytics: goo.gl/ZNsY8l
************
************
QUESTIONS? COMMENTS? SUGGESTIONS? You’ll find me here:
Linkedin ► goo.gl/3VW6Ky
Twitter ► @curbalen, @ruthpozuelo
Facebook ► goo.gl/bME2sB
#daxfridays #curbal #dax #powerbi #mvp

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

 

5 авг 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 42   
@NaraMeerammaTrust
@NaraMeerammaTrust 5 лет назад
Very useful video. Thanks Ruth and have a wonderful week end.
@CurbalEN
@CurbalEN 5 лет назад
Same to you Venkatesh! /Ruth
@dapperlink
@dapperlink 2 года назад
Your second real Takeaway is, “Clean your data properly!”. This was masterful! Thanks Ruth!!
@CurbalEN
@CurbalEN 2 года назад
🎉🎉
@nhatanh2475
@nhatanh2475 3 года назад
Thank you very much
@sheilahart5989
@sheilahart5989 5 лет назад
WOW! I always knew there was a difference, but I did not understand the potential impact to calculations. Thanks for the heads up!
@CurbalEN
@CurbalEN 5 лет назад
Right? Crazy.... I will review the other Blank functions and see what is going on with those. /Ruth
@michelcesar85
@michelcesar85 5 лет назад
Coincidentally I had exactly this difficulty today, I was trying to make a calculation that never worked out with BLANK, I tried with ISBLANK and it worked ... but I spent hours on it ... Thanks for the video! Greetings from Brazil!
@CurbalEN
@CurbalEN 5 лет назад
Uhhh! Music to my ears! Have a great weekend :) /Ruth
@bcippitelli
@bcippitelli 5 лет назад
Crazy BI! Thanks Ruth!!!
@CurbalEN
@CurbalEN 5 лет назад
Right?? Pure madness... /Ruth
@gioratamir9578
@gioratamir9578 4 года назад
Thank you, Ruth. This is why in Visuales in a column of codes it won't count the line with blanks.
@SaniGarba
@SaniGarba 5 лет назад
Thank you most graciously.
@CurbalEN
@CurbalEN 5 лет назад
My pleasure Sani :) /Ruth
@2404Pepe
@2404Pepe 4 года назад
Gracias! gracias! and Thanks so much!!!
@CurbalEN
@CurbalEN 4 года назад
😊 /Ruth
@andrino6736
@andrino6736 5 лет назад
It looks like "=" executes implicit type conversion of null to type of compared value before comparison, but "==" considers null as value of nothing type in comparison and that's why isblank() evaluates null as equal to blank (loaded null), because they're same values of same type. Probably it's a bug, I prefer prefer always to use blank() comparison.
@CurbalEN
@CurbalEN 5 лет назад
Yeah... still confusing for me... but glad it makes sense to others! /Ruth
@elrevesyelderecho
@elrevesyelderecho 5 лет назад
Reading about "CountBlank" Microsoft said: Remarks The only argument allowed to this function is a column. You can use columns containing any type of data, but only blank cells are counted. Cells that have the value zero (0) are not counted, as zero is considered a numeric value and not a blank. Whenever there are no rows to aggregate, the function returns a blank. However, if there are rows, but none of them meet the specified criteria, the function returns 0. Microsoft Excel also returns a zero if no rows are found that meet the conditions. In other words, if the COUNTBLANK function finds no blanks, the result will be zero, but if there are no rows to check, the result will be blank. So, looks like to get the correct value will be only using ISBLANK and/or the new ==
@CurbalEN
@CurbalEN 5 лет назад
Looks the same to me and to be careful with empties... /Ruth
@yvettesilen6251
@yvettesilen6251 4 года назад
POWER BI: Days to reply response = IF ( [StartDate] BLANK (), [EndDate] - [StartDate] ) Now I some results with Negative whole numbers for the ones missing end date. I dont want it to have negative whole numbers on the column. Because I later need to calculate the Avg days to reply when I go to the “model your data view”
@lifeisstr4nge
@lifeisstr4nge 5 лет назад
I would assume the same as it is defined in the formula outputs, because isblank is there to see if something is not null. And blank checks for non-zero (numbers) and no-text (texts) values, so it makes sense. Double equals are not assignments like single equals, so that's why they match.
@CurbalEN
@CurbalEN 5 лет назад
It does? It still makes no sense to me 😂😂 /Ruth
@andrecavasotero6234
@andrecavasotero6234 5 лет назад
Of all the explanations I read about it I had never associated with toilet paper, I laughed for two minutes.
@CurbalEN
@CurbalEN 5 лет назад
You Will never forget it anymore! You can now tell your children that when toilet paper is null you refill it 😂😂😂 /Ruth
@christoferglatz5838
@christoferglatz5838 3 года назад
Hej Ruth, Jag är så otroligt glad att jag hittade den här videon då det verkar vara samma sak med klockslaget 00:00:00 som "=blank ()" tar som null men inte "==blank ()". Hur får man till "==blank ()" i ett filter i när man vill använda calculate för att filtrera ett mätvärde där man vill räkna antal klockslag som är null men inte 00:00:00 ? Mvh Christofer
@inspiredwords5303
@inspiredwords5303 5 лет назад
Thank you, is this a bug on Power BI, sql has the similar issue, with empty space
@CurbalEN
@CurbalEN 5 лет назад
No idea... If sql is the same, maybe it is done by design. /Ruth
@vida1719
@vida1719 5 лет назад
Very good comparison. It could be some inconsistency in Microsoft functions, how they treat zeros and blanks and you are right that blanks should be avoided, but people who enter data, leave blanks if they don't know value
@CurbalEN
@CurbalEN 5 лет назад
When that happens, I use power query and change it to unknown, or not applicable or unspecified or missing so it removes the blank and also tells the audience what the blank really is. /Ruth
@vida1719
@vida1719 5 лет назад
Sometimes numeric values or dates are missing. I also use PQ to fill blanks with agreed values until actual values are available, otherwise blanks would cause an issue for calculations.
@CurbalEN
@CurbalEN 5 лет назад
Awesome!!! :) /Ruth
@CJ-jc8tn
@CJ-jc8tn 4 года назад
Hi Ruth - I am a new subscriber to your channel over the past month and cannot thank you enough for the brilliant videos you provide each week. I am going through DAX Friday's in binge mode at the moment :) A couple of observations on some of the confusion over blank and null and zero. I noticed in a few parts of your video, you might have been confusing the assignment operator(=) with the logical operator(==) For example, ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-C26DQkb4hyY.html&t=341 I believe the reason you got 'yes,yes', is because you first assigned blank to both rows and then this was used in the IF statement and therefore both were yes because you just assigned them to blank. But if you modify your column as follows: blank_text_w_logical_op = if(data[Text]==BLANK(),"yes","no") If you define the calculated column using the logical operator (==) instead of the assignment operator (=), you'll get the expected output. Here is another example: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-C26DQkb4hyY.html Again you are assigning blank to the number first and then checking whether it is yes or no. But if you modify it using logical operator, you will get the correct result: blank_number_w_logical_op = if(data[Number]==BLANK(),"yes","no") One more: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-C26DQkb4hyY.html Again modify it slightly as follows: zero_number_w_logical_op = if(data[Number]==0,"yes","no") Hope this helps. Conor
@CurbalEN
@CurbalEN 4 года назад
Hi Conor! I will check your videos on Monday, thanks a million for the feedback :) My background is not from IT so simple things sometimes throw me off road, but thankfully I have you guys that see that and help me along! Enjoy your weekend, and as somebody told me a while back: It is Friday every day until each dax Friday video has been watched ;) /Ruth
@yvettesilen6251
@yvettesilen6251 4 года назад
Leave values blank in calculated column This is probably something very simple but I can't figure it out. I have the following formula: Basically, I'd like to calculate the difference between start and end date, but leave the cells in the calculated column blank if there is no end date. I can't do "" because I get the error saying that you can't mix integers and strings. I can do 0 instead but that makes my calculations after this more difficult. Is there a way to say Something like "null" to leave it blank? In excel would be this Time = IF(ISBLANK([startdate]); ""; [enddate]-[startdate]) What would be the equation to add in power bi?
@elrevesyelderecho
@elrevesyelderecho 5 лет назад
F### I've never figured it out that!! So, if you use "ISEMPTY"? tic, toc, tic, toc, Empty cell wil be "undefined" but not "null"?
@majdyazigi8185
@majdyazigi8185 4 года назад
Zeros are definitely not blanks, this is total mess thank you for bringing this to table, Microsoft should fix that
@CurbalEN
@CurbalEN 4 года назад
For what I understand, it is common practice in certain languages... who knew? /Ruth
@feng3625
@feng3625 5 лет назад
So confused. you haven't check IsEmpty yet.
@CurbalEN
@CurbalEN 5 лет назад
Oh no! I haven’t ! Let me brush off all the blanks functions to see how they behave ... /Ruth
@Laxmanmane007
@Laxmanmane007 3 года назад
so confusing
@CurbalEN
@CurbalEN 3 года назад
I know :(