Power Query Secrets: Use coalesce (??) to handle null values

  Рет қаралды 5,949

Excel Off The Grid

Excel Off The Grid

Күн бұрын

Пікірлер: 33
@timtunbridge
@timtunbridge Күн бұрын
Example 3 is genius over tested ifs. Love it Mark.
@zingmo
@zingmo 3 күн бұрын
This is a great way to have values in one column override the values in another if they are present without having to create a conditional column.
@keylanoslokj1806
@keylanoslokj1806 3 күн бұрын
This😊
@ExcelOffTheGrid
@ExcelOffTheGrid 2 күн бұрын
Yep, you got it 👍
@GrainneDuggan_Excel
@GrainneDuggan_Excel 2 күн бұрын
Intriguing examples. Thanks Mark
@michaelbrown8821
@michaelbrown8821 2 күн бұрын
OK, i subscribed. I coalesced. Thx for this great feature.
@williamelliott5999
@williamelliott5999 3 күн бұрын
In your trial balance example, the "each [Debit] ?? 0 - [Credit] ?? 0" only seems works when one column or the other is, in fact, null. If there is a risk that there are numbers in each column, the this formula only returns the first column. A safer variant would be to surround the elements with brackets "each ([Debit] ?? 0) - ([Credit] ?? 0" ) . My favoured route is to use List.Sum which acts like Sum in Excel so is quite forgiving (if that's what you want) and i would write "each ListSum({[Debit],[Credit]})" This has the flexibility to work across adding several columns with some safety!
@ExcelOffTheGrid
@ExcelOffTheGrid 3 күн бұрын
Good point about the calculation precedence. With my data it would be impossible to have a debit and a credit at the same line, so it will work. Good use of brackets and List.Sum to avoid it. 👍
@DaveIsAtWork-Really
@DaveIsAtWork-Really 2 күн бұрын
@@ExcelOffTheGrid Normally it is not possible to have both a Debit and a Credit balance for an account, but I sometimes work with multiple divisions or companies listed side by side, giving something like Co1.Dr, Co1.Cr, Co2.Dr, Co2.Cr ..... = Grand Total Account Balance. Enclosing each element with () would get to the right total.
@Trucpq
@Trucpq 2 күн бұрын
Another good practice. Thanks
@ziggle314
@ziggle314 2 күн бұрын
Thanks Mark. Great job.
@pratiklpatel
@pratiklpatel 3 күн бұрын
I already subscribed, this would have saved one more record being null :) Great video by the way.
@ExcelOffTheGrid
@ExcelOffTheGrid 2 күн бұрын
The less nulls the better 😁
@raimundojs9547
@raimundojs9547 2 күн бұрын
Perfect! Thank you!
@gonzuic
@gonzuic 2 күн бұрын
Great information, really great. Thanks
@mirrrvelll5164
@mirrrvelll5164 2 күн бұрын
This was a neat one. ☝️ I find it useful
@mohammedelsakally540
@mohammedelsakally540 3 күн бұрын
Thank you Mark for the valuable content you are providing to your followers 👍 🙏
@ExcelOffTheGrid
@ExcelOffTheGrid 2 күн бұрын
Thank you - I’m glad you like it.
@ramruttunaubeeluck9235
@ramruttunaubeeluck9235 3 күн бұрын
Thank you Mark
@ExcelOffTheGrid
@ExcelOffTheGrid 2 күн бұрын
You’re welcome 😁
@stefankirst3234
@stefankirst3234 3 күн бұрын
That´s a really, really useful concept 😃 Never even heard of it before 🤯 Thank´s a bunch!
@ExcelOffTheGrid
@ExcelOffTheGrid 2 күн бұрын
It’s a niche piece of underground knowledge - I hope you can put it to good use.
@zzota
@zzota 3 күн бұрын
Great trick. Thanks, Mark.
@ExcelOffTheGrid
@ExcelOffTheGrid 2 күн бұрын
Glad you liked it! 😁
@Ratnakumarwrites
@Ratnakumarwrites 3 күн бұрын
Great learning... Thanks 😀
@ExcelOffTheGrid
@ExcelOffTheGrid 2 күн бұрын
My pleasure
@yousrymaarouf2931
@yousrymaarouf2931 2 күн бұрын
amazing
@sagunmaghaia4831
@sagunmaghaia4831 3 күн бұрын
Awesome
@ExcelOffTheGrid
@ExcelOffTheGrid 2 күн бұрын
Thank you.
@kebincui
@kebincui 3 күн бұрын
👍❤
@ExcelOffTheGrid
@ExcelOffTheGrid 3 күн бұрын
Thanks Kebin.
The Show Details Checkbox: Advanced Excel Formulas
17:38
Excel Campus - Jon
Рет қаралды 7 М.
10 awesome Power Query tricks you NEED to know! | Excel Off The Grid
15:44
Excel Off The Grid
Рет қаралды 42 М.
У ГОРДЕЯ ПОЖАР в ОФИСЕ!
01:01
Дима Гордей
Рет қаралды 8 МЛН
Advanced Grouping Tricks In Power Query
15:34
Goodly
Рет қаралды 26 М.
Are These Pivot Table Mistakes Costing You?
9:45
Leila Gharani
Рет қаралды 35 М.
Do-While Loop in Power Query with List.Generate
10:42
Power-M-Query
Рет қаралды 620
Excel Formatting Tricks That Make You Look Like a Pro
12:15
MyOnlineTrainingHub
Рет қаралды 33 М.
The #1 Excel formula issue - Data structure | Excel Off The Grid
11:20
Excel Off The Grid
Рет қаралды 8 М.
10 Power Query tips EVERY user should know! | Excel Off The Grid
7:27
Excel Off The Grid
Рет қаралды 13 М.
Using dynamic arrays in a Table : 4 methods | Excel Off The Grid
8:07
Excel Off The Grid
Рет қаралды 12 М.
The Best KPI Cards In Power BI
40:17
Power BI Park
Рет қаралды 26 М.