Blank row in DAX

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

SQLBI

SQLBI

Күн бұрын

Пікірлер: 68
@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!
@AdiCristea
@AdiCristea 4 жыл бұрын
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!
@RobertoStaltari
@RobertoStaltari 4 жыл бұрын
First time I listen to such a clear and simple explanation for blank rows.
@alvarorodriguezlasso
@alvarorodriguezlasso 2 жыл бұрын
You are the best: "BRAVO". Regards from Cali-Colombia.
@paravej
@paravej Жыл бұрын
Thanks Alberto Your all videos are eye opener... Thanks a lot
@CJ-jc8tn
@CJ-jc8tn 4 жыл бұрын
Superb tutorial as always. Taking the mystery out of DAX one video at a time. Thank you!
@smartdata678
@smartdata678 4 жыл бұрын
Telepathy or Truman show or Matrix - just yesterday my report started to show blanks... Many thanks. I am a big fan!
@powerbiisrael6819
@powerbiisrael6819 4 жыл бұрын
Thanks a lot, dear Alberto. All the best! From Shlomi (Israel)♥️
@piesogrodnika572
@piesogrodnika572 4 жыл бұрын
"it's breaking the beaty of your report" - I will make a Notification sound of that :D
@frankgovers8420
@frankgovers8420 3 жыл бұрын
Create a check from sales to products, with related. I always create it to check fact to dimension
@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.
@Gustavo-Santana
@Gustavo-Santana 4 жыл бұрын
Thank you for the explanation Alberto , incredibly didactic! Regards from Brazil
@pacogucci6329
@pacogucci6329 3 жыл бұрын
Clear & shinny
@sue_bayes
@sue_bayes 4 жыл бұрын
This is really useful and can have such an impact on the final results. Thank you for such a clear explanation.
@matthewdufty606
@matthewdufty606 2 жыл бұрын
Very good. Got this exact issue. Now I can fix it. Thank you ⭐
@sbn4862
@sbn4862 2 жыл бұрын
Fantastic explanation , that's why i always have incorrect results in excel, Thank you
@Dhrittinagpal
@Dhrittinagpal Жыл бұрын
Thank you so much for clarifying it so well..
@aleksanderstrommer7677
@aleksanderstrommer7677 4 жыл бұрын
I was just wondering this when this video was published!
@pravinupadhyay2046
@pravinupadhyay2046 4 жыл бұрын
Nice one. I have also read this in your article before.
@samuelmanseau6905
@samuelmanseau6905 4 жыл бұрын
Cristal clear and very usefull ! Thanks a lot for this excellent video and your deep explaination of Dax.
@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
@igordemetriusalencar5861
@igordemetriusalencar5861 4 жыл бұрын
Awesome!! I have a datamodel in wich is very important to know and count Blank. Verry informative!! Thank you!
@ajaaskelainen
@ajaaskelainen 4 жыл бұрын
Very granular explanation! Thank you!
@Darknesslc3
@Darknesslc3 4 жыл бұрын
in technical terms, make sure there is no referential integrity issue, happens on bad data model/design
@rajasekharvadde6536
@rajasekharvadde6536 3 жыл бұрын
How can we avoid showing the blank row from product from the table visual
@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.
@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!
@mirrrvelll5164
@mirrrvelll5164 2 жыл бұрын
Do functions DATESINPERIOD and COUNTROWS creating one blank row even if data set is without any of them?
@minstreltokunbo
@minstreltokunbo 3 жыл бұрын
Why is the color column still blank with a sales amount???
@elrevesyelderecho
@elrevesyelderecho 4 жыл бұрын
10:25 Why PBI doesn't have a feature called "duplicate measure" / "duplicate column"?
@SQLBI
@SQLBI 4 жыл бұрын
Because this idea needs more votes: ideas.powerbi.com/ideas/idea/?ideaid=002a6710-53f6-44c0-96d9-5a87727bb59b
@elrevesyelderecho
@elrevesyelderecho 4 жыл бұрын
@@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 4 жыл бұрын
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!
@ΧΡΗΣΤΟΣΚΑΠΕΛΗΣ
@ΧΡΗΣΤΟΣΚΑΠΕΛΗΣ 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
@susantakumar8330
@susantakumar8330 4 жыл бұрын
Awesome content. Thank you Alberto for sharing.
@venkatakrishnagangavarapu2131
@venkatakrishnagangavarapu2131 3 жыл бұрын
How to hide blank rows in model ? pls let us know
@Luis.C.Canchan
@Luis.C.Canchan 2 жыл бұрын
Muchas gracias Alberto
@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
@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?
@heniekheniek1781
@heniekheniek1781 4 жыл бұрын
Awesome, this is some solid, useful knowledge! Good job!
@mikar636
@mikar636 4 жыл бұрын
Just Amazing Video!! Thank you Alberto!!
@HeliSal700
@HeliSal700 4 жыл бұрын
As usual, DAX can be mind-bending. Thank you for this informative content. Keep going, please
@farmanalishah8836
@farmanalishah8836 4 жыл бұрын
Many thanks Alberto. 👍
@kadirkkkk
@kadirkkkk 3 жыл бұрын
You’re king 😀👑
@gulmohar5441
@gulmohar5441 3 жыл бұрын
Thank you so much for the video, really informative
@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.
@Bharath_PBI
@Bharath_PBI 4 жыл бұрын
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 4 жыл бұрын
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 4 жыл бұрын
@@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 4 жыл бұрын
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 4 жыл бұрын
@@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.
@EricaDyson
@EricaDyson 4 жыл бұрын
So so so so so useful.. thank you so much.
@anuragbawankar685
@anuragbawankar685 3 жыл бұрын
Thanks , Hoe can we remove Blank from Slicer/Filter ?
@edissonalmanza2072
@edissonalmanza2072 2 жыл бұрын
Is it possible to rename that blank row, for example a "Missing" ?
@SQLBI
@SQLBI 2 жыл бұрын
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.
@1yyymmmddd
@1yyymmmddd 4 жыл бұрын
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 4 жыл бұрын
Probably because you have dates in your data that are outside the range of dates included in the Date table.
@1yyymmmddd
@1yyymmmddd 4 жыл бұрын
@@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 4 жыл бұрын
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).
@NoShadowOfDoubt1
@NoShadowOfDoubt1 4 жыл бұрын
Very nice ... thank you
@vincenzomascia4422
@vincenzomascia4422 4 жыл бұрын
Very interesting, thank you very much :)
@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!!!
@atanasprodatanasov9233
@atanasprodatanasov9233 4 жыл бұрын
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 4 жыл бұрын
You can find our training offer here: www.sqlbi.com/training/
@PeterKontogeorgis
@PeterKontogeorgis 4 жыл бұрын
Stick with it, DAX makes everyone feel like that initially!
@zeisslaimen1
@zeisslaimen1 4 жыл бұрын
Alberto is very busy recently :)
Row Context in DAX
20:42
SQLBI
Рет қаралды 104 М.
Compute a ranking based on multiple columns
22:59
SQLBI
Рет қаралды 57 М.
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
When to use KEEPFILTERS over iterators
18:56
SQLBI
Рет қаралды 50 М.
REDUCE the # of measures with Calculation Groups In Power BI
9:24
Guy in a Cube
Рет қаралды 231 М.
BLANK in date columns and DAX time intelligence functions
34:36
Propagating filters using TREATAS in DAX
19:18
SQLBI
Рет қаралды 47 М.
Using the SELECTEDVALUE function in DAX
12:27
SQLBI
Рет қаралды 191 М.
Bidirectional relationships and ambiguity
14:02
SQLBI
Рет қаралды 111 М.
Using OR conditions between slicers in DAX
22:43
SQLBI
Рет қаралды 32 М.
Using GENERATE and ROW instead of ADDCOLUMNS in DAX
12:26
Build a Slicer Panel in Power BI and take it to the next level (2019)
8:24
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН