How to return 0 instead of BLANK in DAX

  Рет қаралды 31,490

SQLBI

SQLBI

Күн бұрын

Пікірлер: 33
@jensvonkracht6770
@jensvonkracht6770 5 ай бұрын
Dear Alberto, even when this video is 2 years old, the topic is up to date. You made my day and helped me solving a problem, where I worked an entire day on. Thank you very much!
@bravucod
@bravucod 3 жыл бұрын
Every time I think I'm getting better at DAX and then watching your videos, it reminds me how much of a Gap there still is!!( You guys make me feel like a newbie).Thanks for such a great content
@MrMalorian
@MrMalorian 3 жыл бұрын
It surprised me after I started making dashboard just how much Blank bothered people and that they wanted to see the 0. I just started adding +0 at the end of my measures. I didn't know there were issues with that method. Thanks for the video :)
@baskis69
@baskis69 3 жыл бұрын
Just in a report I had this problem now. The video has been a gift to me. Grazie mille!
@sarajvo2010
@sarajvo2010 3 жыл бұрын
Wow, so much learning content in demo. "business logic is in table" I like it
@christofhermdelgado4267
@christofhermdelgado4267 2 жыл бұрын
Really cool stuff, I hope you can answer my question because I'm getting crazy with a blank I don't know how to turn into zero, what instead of using product in rows I have Weeks instead? How can I show the zero in that case? how the ALLEXCEPT argument will change?
@gruffalocrumble494
@gruffalocrumble494 3 жыл бұрын
Amazing. Thank you as always Alberto.
@tonildg9822
@tonildg9822 3 жыл бұрын
Thanks a lot Alberto great video! 👍 Wonderful solution. One question, with the second version of the calculated table, when you remove the filter from the products to avoid the circular dependency, doesn't that affect the row context you are in due to GENERATE?
@samgrider3765
@samgrider3765 Ай бұрын
I'm experiencing an issue where I need to replace blanks with 0 in a measure, but when I do, the measures stops obeying the the date slicer in the visual. How can I replace blanks with 0's while maintaining the functionality of slicers/filters? Thank you!
@SQLBI
@SQLBI Ай бұрын
It depends on the business logic - adding 0 could increase the number of visible cells affecting the performance - you should implement your logic that shows 0 only in intersections where it makes sense. It cannot be generalized, it depends on your model.
@jeromelouvel732
@jeromelouvel732 3 жыл бұрын
Another great and very well explained one! Thank you.
@samuelmanseau467
@samuelmanseau467 3 жыл бұрын
Very clear video & excellent advice !
@rafaeldurbanoneto5751
@rafaeldurbanoneto5751 3 жыл бұрын
Hello Albert Thanks for the explanation ! However I notice that your ZeroGrain table is created using Sales table that it's work just for Sales Measures in your calculation group, right ? If I have more than one fact table in my model I would need to create more tables like ZeroGrain, right ? For this maybe the first or de second approach is better... what do you think ?
@JoelNove
@JoelNove 3 жыл бұрын
Very helpful! Thanks Alberto
@josephansah
@josephansah 3 жыл бұрын
Hi SQL BI team. Can you please explain why a circular dependency arises within the second table used within GENERATE, which requires removing filters from the Product table? Can't understand why that prevents creating a relationship with the date table. Thanks for your very educational videos/work.
@cognovo
@cognovo 3 жыл бұрын
Hi Alberto, nice video, could you eloborate a bit more on why you removed the filter context of product when solving the circular dependency issue? I do not understand why removing the product filter context helped in solving this issue.
@SQLBI
@SQLBI 3 жыл бұрын
Look at these articles/video: www.sqlbi.com/articles/avoiding-circular-dependency-errors-in-dax/ www.sqlbi.com/articles/understanding-circular-dependencies/
@guillermodebiase5803
@guillermodebiase5803 3 жыл бұрын
Hi Alberto, I need a different aproach of this scenario, I need to return zero for a near zreo value, in my scenario I create a waterfall chart that shows the Price, Volume and Mix variations by Year-Month, and si some cases the products has sales in value (let say 5 USD) and a volumen near to zero, like 0.00000001, so in the cases the division between sales and volumen will create a "exception number", the result is 500,000,000 USD, but this result is an exception, so my customer require to create a rule to mitigate this scenario and if the volumen is really near to zero then the division result shows zero as result
@guillermodebiase5803
@guillermodebiase5803 3 жыл бұрын
One more comment here, the sales table is a table by day, customer and product, so the numbers that I put as example are the total sum af a particular month
@giri41
@giri41 6 ай бұрын
❤ video… sumx ignored when blanks in CY .. please help
@odinismli
@odinismli 3 жыл бұрын
@3:37, what magic button made the formula bar hidden?
@sandeepbarge4699
@sandeepbarge4699 Жыл бұрын
Why does Show Items with No data shows all the permutations and combinations of two dimension tables used along with measure that refers to fact table? It should return only those rows for which there is row in fact table even if measure returns blank. And not cartesian product of two dimension tables. Can you please help me understand how to resolve this issue? Please reply. Thanks in advannce!
@sandeepbarge4699
@sandeepbarge4699 Жыл бұрын
Hi Team - An I missing something? It would be great help if you can answer my query here.
@ashishmohan4707
@ashishmohan4707 3 жыл бұрын
Hi Alberto, Hope you are doing well and safe with your family very useful video and very practical need everyone for every project ......very big thanks to share with us. You are really a real DAX hero U r magician on DAX You can do everything on DAX If it can possible can you plzz provide us excel data file which you used. Very greatful for us...👌👌👌👌👌👌👌👌💐💐💐💐🎂🎂🎂🎂🎂🎂🎂🎂🎂🎂🎂🎂
@SQLBI
@SQLBI 3 жыл бұрын
You can find the link to the article in the description. The sample file can be downloaded from that page.
@gianpaolo19
@gianpaolo19 2 жыл бұрын
I tried this in PowerPivot for Excel in a Pivot table and it doesn't work neither the "If IsBlank()" solution nor the [measure]+0....I don't understand why....It should be the same logic...As workaround I had to add one extra row in the Database with value = 0 to be able to represnt the right datas
@giri41
@giri41 6 ай бұрын
Sumx ( values (material), Calculate( if ( sales cy = 0 || sales PY =0 , sales variance, unit price* sales PY))) it’s not working
@pabeader1941
@pabeader1941 2 жыл бұрын
Doing the + 0 thing doesn't work. I even tried adding + 1 and that did nothing either. Any ideas?
@SQLBI
@SQLBI 2 жыл бұрын
Check if you are hitting the autoexists behavior: www.sqlbi.com/articles/understanding-dax-auto-exist/
@wisa7615
@wisa7615 3 жыл бұрын
Every time i think i know something suddenly i don't know anything
@nikolagrkovic8769
@nikolagrkovic8769 2 жыл бұрын
Iferror ( ...,0) 😂
@stephanweaver1960
@stephanweaver1960 3 жыл бұрын
The Babylonians would be proud - a half hour talking about nothing as zero. Not "Much to do about nothing"
Understanding eager vs. strict evaluation in DAX
18:34
SQLBI
Рет қаралды 6 М.
Row Context in DAX
20:42
SQLBI
Рет қаралды 100 М.
Synyptas 4 | Арамызда бір сатқын бар ! | 4 Bolim
17:24
How it feels when u walk through first class
00:52
Adam W
Рет қаралды 20 МЛН
VAMPIRE DESTROYED GIRL???? 😱
00:56
INO
Рет қаралды 6 МЛН
didn't manage to catch the ball #tiktok
00:19
Анастасия Тарасова
Рет қаралды 31 МЛН
How to return BLANK instead of zero
11:30
SQLBI
Рет қаралды 12 М.
Context transition in DAX explained visually
27:14
SQLBI
Рет қаралды 11 М.
When to use KEEPFILTERS over iterators
18:56
SQLBI
Рет қаралды 49 М.
Show blank as zero - Unplugged #20
49:04
SQLBI
Рет қаралды 9 М.
Propagating filters using TREATAS in DAX
19:18
SQLBI
Рет қаралды 45 М.
Filter columns, not tables, in DAX
20:37
SQLBI
Рет қаралды 13 М.
Don't make these CALCULATE Function Mistakes! ⚠️
10:09
Lookup multiple values in DAX
22:10
SQLBI
Рет қаралды 53 М.
REDUCE the # of measures with Calculation Groups In Power BI
9:24
Guy in a Cube
Рет қаралды 226 М.
Hands-On Power BI Tutorial 📊Beginner to Pro [Full Course] ⚡
3:05:45
Pragmatic Works
Рет қаралды 2,2 МЛН
Synyptas 4 | Арамызда бір сатқын бар ! | 4 Bolim
17:24