Blank row in DAX

  Рет қаралды 45,428

SQLBI

SQLBI

Күн бұрын

Пікірлер: 68
@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!
@RobertoStaltari
@RobertoStaltari 3 жыл бұрын
First time I listen to such a clear and simple explanation for blank rows.
@piesogrodnika572
@piesogrodnika572 3 жыл бұрын
"it's breaking the beaty of your report" - I will make a Notification sound of that :D
@CJ-jc8tn
@CJ-jc8tn 3 жыл бұрын
Superb tutorial as always. Taking the mystery out of DAX one video at a time. Thank you!
@powerbiisrael6819
@powerbiisrael6819 3 жыл бұрын
Thanks a lot, dear Alberto. All the best! From Shlomi (Israel)♥️
@smartdata678
@smartdata678 3 жыл бұрын
Telepathy or Truman show or Matrix - just yesterday my report started to show blanks... Many thanks. I am a big fan!
@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.
@paravej
@paravej Жыл бұрын
Thanks Alberto Your all videos are eye opener... Thanks a lot
@Gustavo-Santana
@Gustavo-Santana 3 жыл бұрын
Thank you for the explanation Alberto , incredibly didactic! Regards from Brazil
@alvarorodriguezlasso
@alvarorodriguezlasso Жыл бұрын
You are the best: "BRAVO". Regards from Cali-Colombia.
@sbn4862
@sbn4862 2 жыл бұрын
Fantastic explanation , that's why i always have incorrect results in excel, Thank you
@samuelmanseau6905
@samuelmanseau6905 3 жыл бұрын
Cristal clear and very usefull ! Thanks a lot for this excellent video and your deep explaination of Dax.
@igordemetriusalencar5861
@igordemetriusalencar5861 3 жыл бұрын
Awesome!! I have a datamodel in wich is very important to know and count Blank. Verry informative!! Thank you!
@matthewdufty606
@matthewdufty606 2 жыл бұрын
Very good. Got this exact issue. Now I can fix it. Thank you ⭐
@aleksanderstrommer7677
@aleksanderstrommer7677 3 жыл бұрын
I was just wondering this when this video was published!
@pravinupadhyay2046
@pravinupadhyay2046 3 жыл бұрын
Nice one. I have also read this in your article before.
@pacogucci6329
@pacogucci6329 2 жыл бұрын
Clear & shinny
@frankgovers8420
@frankgovers8420 2 жыл бұрын
Create a check from sales to products, with related. I always create it to check fact to dimension
@Dhrittinagpal
@Dhrittinagpal Жыл бұрын
Thank you so much for clarifying it so well..
@ajaaskelainen
@ajaaskelainen 3 жыл бұрын
Very granular explanation! Thank you!
@Darknesslc3
@Darknesslc3 3 жыл бұрын
in technical terms, make sure there is no referential integrity issue, happens on bad data model/design
@HeliSal700
@HeliSal700 3 жыл бұрын
As usual, DAX can be mind-bending. Thank you for this informative content. Keep going, please
@heniekheniek1781
@heniekheniek1781 3 жыл бұрын
Awesome, this is some solid, useful knowledge! Good job!
@mikar636
@mikar636 3 жыл бұрын
Just Amazing Video!! Thank you Alberto!!
@susantakumar8330
@susantakumar8330 3 жыл бұрын
Awesome content. Thank you Alberto for sharing.
@Luis.C.Canchan
@Luis.C.Canchan 2 жыл бұрын
Muchas gracias Alberto
@danielakiokataoka7395
@danielakiokataoka7395 2 жыл бұрын
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.
@gulmohar5441
@gulmohar5441 3 жыл бұрын
Thank you so much for the video, really informative
@EricaDyson
@EricaDyson 3 жыл бұрын
So so so so so useful.. thank you so much.
@farmanalishah8836
@farmanalishah8836 3 жыл бұрын
Many thanks Alberto. 👍
@carmelomartelli5754
@carmelomartelli5754 2 жыл бұрын
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
@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.
@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?
@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!
@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!
@kadirkkkk
@kadirkkkk 2 жыл бұрын
You’re king 😀👑
@NoShadowOfDoubt1
@NoShadowOfDoubt1 3 жыл бұрын
Very nice ... thank you
@danielakiokataoka7395
@danielakiokataoka7395 2 жыл бұрын
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
@mirrrvelll5164
@mirrrvelll5164 2 жыл бұрын
Do functions DATESINPERIOD and COUNTROWS creating one blank row even if data set is without any of them?
@vincenzomascia4422
@vincenzomascia4422 3 жыл бұрын
Very interesting, thank you very much :)
@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.
@rajasekharvadde6536
@rajasekharvadde6536 2 жыл бұрын
How can we avoid showing the blank row from product from the table visual
@zeisslaimen1
@zeisslaimen1 3 жыл бұрын
Alberto is very busy recently :)
@minstreltokunbo
@minstreltokunbo 3 жыл бұрын
Why is the color column still blank with a sales amount???
@Hammett1980
@Hammett1980 3 жыл бұрын
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 3 жыл бұрын
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!!!
@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.
@venkatakrishnagangavarapu2131
@venkatakrishnagangavarapu2131 3 жыл бұрын
How to hide blank rows in model ? pls let us know
@ΧΡΗΣΤΟΣΚΑΠΕΛΗΣ
@ΧΡΗΣΤΟΣΚΑΠΕΛΗΣ 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
@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!
@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).
@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.
@anuragbawankar685
@anuragbawankar685 3 жыл бұрын
Thanks , Hoe can we remove Blank from Slicer/Filter ?
Row Context in DAX
20:42
SQLBI
Рет қаралды 99 М.
Using GENERATE and ROW instead of ADDCOLUMNS in DAX
12:26
Кәсіпқой бокс | Жәнібек Әлімханұлы - Андрей Михайлович
48:57
Inside Out 2: ENVY & DISGUST STOLE JOY's DRINKS!!
00:32
AnythingAlexia
Рет қаралды 16 МЛН
Un coup venu de l’espace 😂😂😂
00:19
Nicocapone
Рет қаралды 5 МЛН
Bidirectional relationships and ambiguity
14:02
SQLBI
Рет қаралды 105 М.
When to use KEEPFILTERS over iterators
18:56
SQLBI
Рет қаралды 48 М.
Lookup multiple values in DAX
22:10
SQLBI
Рет қаралды 52 М.
Creating custom visuals in Power BI with DAX
35:04
SQLBI
Рет қаралды 18 М.
DAX by examples
1:11:50
SQLBI
Рет қаралды 221 М.
Understanding and fixing blank values in Power BI
10:32
Pragmatic Works
Рет қаралды 25 М.
Using OR conditions between slicers in DAX
22:43
SQLBI
Рет қаралды 31 М.
Understanding data lineage in DAX
18:14
SQLBI
Рет қаралды 30 М.
Advanced RANKX - How To Understand This Function More Deeply
11:33
Enterprise DNA
Рет қаралды 37 М.