Blank row in DAX

  Рет қаралды 44,463

SQLBI

SQLBI

3 жыл бұрын

VALUES and DISTINCT are two functions that differ in how they could add a blank row to the result (or not).
Article and download: sql.bi/245557?aff=yt
How to learn DAX: www.sqlbi.com/guides/dax/?aff=yt
The definitive guide to DAX: www.sqlbi.com/books/the-defin...

Пікірлер: 68
@piesogrodnika572
@piesogrodnika572 3 жыл бұрын
"it's breaking the beaty of your report" - I will make a Notification sound of that :D
@AdiCristea
@AdiCristea 3 жыл бұрын
These videos are just gold, I think I've said this in the past, but after each video you guys are uploading I am just sat in my chair wowed - "why didn't I think of that, seems pretty logical". Thank you, Alberto!
@jschwendt
@jschwendt 2 жыл бұрын
I wish you could superlike a video. This is one of the best KZbin tutorial videos I've ever seen. The fact that Power BI doesn't flag this with at least a warning message is criminal. Thank you for putting this out!
@CJ-jc8tn
@CJ-jc8tn 3 жыл бұрын
Superb tutorial as always. Taking the mystery out of DAX one video at a time. Thank you!
@RobertoStaltari
@RobertoStaltari 3 жыл бұрын
First time I listen to such a clear and simple explanation for blank rows.
@sue_bayes
@sue_bayes 3 жыл бұрын
This is really useful and can have such an impact on the final results. Thank you for such a clear explanation.
@Gustavo-Santana
@Gustavo-Santana 3 жыл бұрын
Thank you for the explanation Alberto , incredibly didactic! Regards from Brazil
@powerbiisrael6819
@powerbiisrael6819 3 жыл бұрын
Thanks a lot, dear Alberto. All the best! From Shlomi (Israel)♥️
@samuelmanseau6905
@samuelmanseau6905 3 жыл бұрын
Cristal clear and very usefull ! Thanks a lot for this excellent video and your deep explaination of Dax.
@paravej
@paravej 11 ай бұрын
Thanks Alberto Your all videos are eye opener... Thanks a lot
@alvarorodriguezlasso
@alvarorodriguezlasso Жыл бұрын
You are the best: "BRAVO". Regards from Cali-Colombia.
@heniekheniek1781
@heniekheniek1781 3 жыл бұрын
Awesome, this is some solid, useful knowledge! Good job!
@aleksanderstrommer7677
@aleksanderstrommer7677 3 жыл бұрын
I was just wondering this when this video was published!
@atinmathur951
@atinmathur951 3 жыл бұрын
Thanks for the informative video. Is there a way to add a text value like "Non-Related" or "Unknown" instead of blank in the color column in given example.
@smartdata678
@smartdata678 3 жыл бұрын
Telepathy or Truman show or Matrix - just yesterday my report started to show blanks... Many thanks. I am a big fan!
@igordemetriusalencar5861
@igordemetriusalencar5861 3 жыл бұрын
Awesome!! I have a datamodel in wich is very important to know and count Blank. Verry informative!! Thank you!
@matthewdufty606
@matthewdufty606 Жыл бұрын
Very good. Got this exact issue. Now I can fix it. Thank you ⭐
@frankgovers8420
@frankgovers8420 2 жыл бұрын
Create a check from sales to products, with related. I always create it to check fact to dimension
@ajaaskelainen
@ajaaskelainen 3 жыл бұрын
Very granular explanation! Thank you!
@susantakumar8330
@susantakumar8330 3 жыл бұрын
Awesome content. Thank you Alberto for sharing.
@mikar636
@mikar636 3 жыл бұрын
Just Amazing Video!! Thank you Alberto!!
@pacogucci6329
@pacogucci6329 2 жыл бұрын
Clear & shinny
@Dhrittinagpal
@Dhrittinagpal 9 ай бұрын
Thank you so much for clarifying it so well..
@gulmohar5441
@gulmohar5441 3 жыл бұрын
Thank you so much for the video, really informative
@pravinupadhyay2046
@pravinupadhyay2046 3 жыл бұрын
Nice one. I have also read this in your article before.
@farmanalishah8836
@farmanalishah8836 3 жыл бұрын
Many thanks Alberto. 👍
@HeliSal700
@HeliSal700 3 жыл бұрын
As usual, DAX can be mind-bending. Thank you for this informative content. Keep going, please
@sbn4862
@sbn4862 2 жыл бұрын
Fantastic explanation , that's why i always have incorrect results in excel, Thank you
@EricaDyson
@EricaDyson 3 жыл бұрын
So so so so so useful.. thank you so much.
@Luis.C.Canchan
@Luis.C.Canchan 2 жыл бұрын
Muchas gracias Alberto
@roxaniramirezsanchez5198
@roxaniramirezsanchez5198 3 жыл бұрын
How could i delete rows in a table or chart, if those rows have blank values in some columns. Thanks for the video!
@danielakiokataoka7395
@danielakiokataoka7395 Жыл бұрын
Hi. I have a similar problem. I have a table with colors (green, yellow, orange, red, blank) in rows and revenue in the column and I need to create a percentage of the total. I used ALL to create a total and it works well but when I filter only one color in the table the total does not consider the blank value.
@vincenzomascia4422
@vincenzomascia4422 3 жыл бұрын
Very interesting, thank you very much :)
@dariuszspiewak5624
@dariuszspiewak5624 3 жыл бұрын
From this it kind of follows that having blank rows, or even partially blank rows, in dimensions in a model where there are referential integrity problems could be totally confusing and almost impossible to handle. Because how would you then differentiate between the legitimate blank row and the artificial one?
@kadirkkkk
@kadirkkkk 2 жыл бұрын
You’re king 😀👑
@user-jy7hd8ku3s
@user-jy7hd8ku3s 2 жыл бұрын
Do you Know how I can archive values I produce daily in power bi. I need to produce a date table with values which are produce d daily but their are only available the current day. The previous values had to be archived
@carmelomartelli5754
@carmelomartelli5754 Жыл бұрын
In your example, how do you eliminate the empty line (color) with sales amount 5.860.066,14 from the visible object. Thank you very much
@NoShadowOfDoubt1
@NoShadowOfDoubt1 3 жыл бұрын
Very nice ... thank you
@mirrrvelll5164
@mirrrvelll5164 2 жыл бұрын
Do functions DATESINPERIOD and COUNTROWS creating one blank row even if data set is without any of them?
@danielakiokataoka7395
@danielakiokataoka7395 Жыл бұрын
Is it possible to make a similiar video but instead of using countrows to create a percentage use the sales amount? And then, filter one color to show only one color in the table. Tks
@Darknesslc3
@Darknesslc3 3 жыл бұрын
in technical terms, make sure there is no referential integrity issue, happens on bad data model/design
@rajasekharvadde6536
@rajasekharvadde6536 2 жыл бұрын
How can we avoid showing the blank row from product from the table visual
@Bharath_PBI
@Bharath_PBI 3 жыл бұрын
Great. Thank you Yes first option would be to not have the invalid relationships. I use DAX studio to check for invalid relationships. A question, if we make the relationship to use inner join instead of left outer (which is default) , it solve the blank row? Side effects of this would be that the report will never show the complete total amounts available in the underlying data source..
@SQLBI
@SQLBI 3 жыл бұрын
You cannot enforce a "inner join" in DAX - you can apply that kind of join while importing/transforming data, but it is up to you to evaluate what to do and manage the side effects of that.
@Bharath_PBI
@Bharath_PBI 3 жыл бұрын
@@SQLBI sorry for not being clear. When we set relationship between sales and product table, if we enforce referential integrity, which behaves as inner join. Will this eliminate blank row?
@SQLBI
@SQLBI 3 жыл бұрын
Enforce referential integrity only works for DirectQuery, not for imported tables. In DirectQuery yes, you eliminate blank rows BUT you eliminate transactions you might want to see - hiding data errors is almost never a good idea!
@Bharath_PBI
@Bharath_PBI 3 жыл бұрын
@@SQLBI Yes, I agree. First choice is , Better to have the quality data (certified dataset) to avoid imperfections and get accurate results which can be used for decision making.
@venkatakrishnagangavarapu2131
@venkatakrishnagangavarapu2131 3 жыл бұрын
How to hide blank rows in model ? pls let us know
@1yyymmmddd
@1yyymmmddd 3 жыл бұрын
Thank you for explanation. However how does it happen when date table gets blank values? For example, when I put up a slicer on Date(Year) I always get a blank row.
@SQLBI
@SQLBI 3 жыл бұрын
Probably because you have dates in your data that are outside the range of dates included in the Date table.
@1yyymmmddd
@1yyymmmddd 3 жыл бұрын
@@SQLBI I understand that blank values can appear in expanded table. But I put dates from the Dates table into slicer. Therefore I wouldn't expect blank year to appear.
@SQLBI
@SQLBI 3 жыл бұрын
The slicer shows the data you have in the Date table, including a blank value if the relationship is invalid (unreferenced dates on the many side).
@minstreltokunbo
@minstreltokunbo 3 жыл бұрын
Why is the color column still blank with a sales amount???
@anuragbawankar685
@anuragbawankar685 3 жыл бұрын
Thanks , Hoe can we remove Blank from Slicer/Filter ?
@edissonalmanza2072
@edissonalmanza2072 Жыл бұрын
Is it possible to rename that blank row, for example a "Missing" ?
@SQLBI
@SQLBI Жыл бұрын
No. You need to clean up your data upfront and create a row to connect with the "invalid rows", which become valid from a Power BI perspective.
@zxccxz164
@zxccxz164 2 жыл бұрын
But how do you handle all these calcs when you do best practice modeling by putting in a dummy value for missing value. ie *NoColor ,*NoProduct. Somehow you have change all your distinct counts to EXCLUDE *NoColor. It is not as simple as it one would think to create one measure that handles the measure whereever you put in on a visual.
@elrevesyelderecho
@elrevesyelderecho 3 жыл бұрын
10:25 Why PBI doesn't have a feature called "duplicate measure" / "duplicate column"?
@SQLBI
@SQLBI 3 жыл бұрын
Because this idea needs more votes: ideas.powerbi.com/ideas/idea/?ideaid=002a6710-53f6-44c0-96d9-5a87727bb59b
@elrevesyelderecho
@elrevesyelderecho 3 жыл бұрын
@@SQLBI 2016?? Come on!! 😱 This a basic feature that lots of software including Microsoft ones have with just a right click on the mouse. Here we here 2020! And we still waiting for it. I don't want to use Tabular Editor for it and just one right click like in Excel.
@SQLBI
@SQLBI 3 жыл бұрын
We totally agree - and the lack of many features for model development is the reason why a tool like Tabular Editor editor exists. Please, forward your disappointment to Microsoft, they already know our ones and they don't read these comments!
@zeisslaimen1
@zeisslaimen1 3 жыл бұрын
Alberto is very busy recently :)
@atanasprodatanasov9233
@atanasprodatanasov9233 3 жыл бұрын
Watching Alberto explaining this seems like a joke... Having it in real life, and working with PBI for less than an year makes me want to become a farmer instead of business analyst. Question: do you provide individual training?
@SQLBI
@SQLBI 3 жыл бұрын
You can find our training offer here: www.sqlbi.com/training/
@PeterKontogeorgis
@PeterKontogeorgis 3 жыл бұрын
Stick with it, DAX makes everyone feel like that initially!
@Hammett1980
@Hammett1980 2 жыл бұрын
I do not understand why you call an "invalid relathionship" when there are less colors in the fact table than in the dimension table. To me that is a perfectly valid and functional relationship, and I do understand the blank row for the color column, but not for the rest (unless they are in the same scenario). If there are the same categories in the dimension table and the fact table, it makes no sense to have a blank in the slicer for category.
@SQLBI
@SQLBI 2 жыл бұрын
The blank row is added if a single product is referenced in the fact table and does not exist in the dimension. This involves all the columns of the same dimension at that point. In general, the "invalid" state of a relationship exists when one or more values on the "many" side do not have a correspondent value on the one side. The presence of a blank value on the "many" side always generate an "invalid" state because blank cannot be used for a relationship.
@zxccxz164
@zxccxz164 2 жыл бұрын
@@SQLBI There are also cases where there is a NULL value in the FACT table.....I don't see any blogs on best practice modeling of inserting dummy value in FACT table that links to the same dummy value in the dimension table. And just as important the IMPACT on writing all measures to correctly count the values. ie You have to EXCLUE the dummy value!!!
Row Context in DAX
20:42
SQLBI
Рет қаралды 93 М.
Blank row and limited relationships
10:00
SQLBI
Рет қаралды 9 М.
Дибала против вратаря Легенды
00:33
Mr. Oleynik
Рет қаралды 4,6 МЛН
ОСКАР ИСПОРТИЛ ДЖОНИ ЖИЗНЬ 😢 @lenta_com
01:01
1❤️
00:17
Nonomen ノノメン
Рет қаралды 12 МЛН
Understanding and fixing blank values in Power BI
10:32
Pragmatic Works
Рет қаралды 20 М.
Using GENERATE and ROW instead of ADDCOLUMNS in DAX
12:26
Circular dependencies and relationships - Unplugged #55
32:30
DAX by examples
1:11:50
SQLBI
Рет қаралды 212 М.
Making DAX Easy
20:01
How to Power BI
Рет қаралды 197 М.
Using OR conditions between slicers in DAX
22:43
SQLBI
Рет қаралды 31 М.
Filter Context in DAX
16:03
SQLBI
Рет қаралды 68 М.
Why is there a blank in my Power BI slicer???
6:55
Guy in a Cube
Рет қаралды 113 М.
Understanding data lineage in DAX
18:14
SQLBI
Рет қаралды 29 М.
Игровой Комп с Авито за 4500р
1:00
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 1,8 МЛН
Best mobile of all time💥🗿 [Troll Face]
0:24
Special SHNTY 2.0
Рет қаралды 2,5 МЛН
GamePad İle Bisiklet Yönetmek #shorts
0:26
Osman Kabadayı
Рет қаралды 442 М.