The decimal is sure the safest option! I wouldn't guess the data type could be a reason for the difference in a million years! Thanks for sharing!
@GeertDelmulle5 жыл бұрын
Dang, until 1 minute ago I used to be “precise” in my data type assigning. From now on it’s ‘decimal’ all the way until I reach the measure level. BTW: this remark only applies in the “currency vs. decimal” department. Thanks, Mike!
@excelisfun5 жыл бұрын
I like: Decimal all the way, until Measure : ) You are welcome, Geert!
@GeertDelmulle5 жыл бұрын
BTW Mike, today I refined your reading ‘all files from folder’-trick by adding a Keyword-variable that I use to select only certain files (the ones where the file names contain the Keyword). That way I can restrict the number of files that are read/used in a workbook. Conversely, I don’t have to put all possible input files in separate folders for the workbook to work correctly. I find that a nice PQ-EMT. Maybe you can use that in one of your videos.
@excelisfun5 жыл бұрын
@@GeertDelmulle , wow!!! That really is cool : ) Power Query can do anything! Thanks for the trick, Geert!!!!
@katerina64955 жыл бұрын
Thank you Mike, great video as always, have a great day
@excelisfun5 жыл бұрын
You are welcome! It has been a good day! I hope you day is good too, Katerina : )
@DIGITAL_COOKING5 жыл бұрын
Awesome! Mike, great video, and I agree with Greet Delmulle about the usage of currency
@excelisfun5 жыл бұрын
Me too : ) Go Team!!!!!
@SyedMuzammilMahasanShahi5 жыл бұрын
This is so awesome. Thanks Mike for this amazing video.
@excelisfun5 жыл бұрын
You are welcome, Syed!!!!!
@joelngige57763 жыл бұрын
Nice insights into how data types affects calculations. Thanks
@excelisfun3 жыл бұрын
Glad it helps. Just use Decimal lol
@MalinaC5 жыл бұрын
Wow, it is so important to use proper data type, great exaple. Thanks, Mike!
@excelisfun5 жыл бұрын
You are welcome, Malina!!!
@wayneedmondson10655 жыл бұрын
Hi Mike.. GREAT video on this topic. Super solutions.. triple the fun! Going to get some more popcorn and watch this one again! Thumbs up!!
@shubhampawar85063 жыл бұрын
Very minute detail ..thanks a lot ❤️
@wayneedmondson10655 жыл бұрын
Hi Mike.. thanks for the great video and exposing the issue of data type and order of use in calculation. Kind of a booby trap hiding in plain sight. Thanks for sharing your wisdom. Thumbs up!
@excelisfun39035 жыл бұрын
It is a booby trap...
@ismailismaili00715 жыл бұрын
thank you so so much for letting us pay attention to this issue.
@excelisfun5 жыл бұрын
You are welcome, Ismail!!!!
@rrrprogram86675 жыл бұрын
Thanks for the tips mike
@excelisfun5 жыл бұрын
You are welcome for the tip, RRR!
@chrism90375 жыл бұрын
Thanks Mike!
@excelisfun5 жыл бұрын
You are welcome, Chris Mancinelli!!!!
@ogwalfrancis5 жыл бұрын
Understanding decimal, Thanks Mike
@excelisfun5 жыл бұрын
You are welcome, Ogwal!!!!
@masterof5 жыл бұрын
Thank you Mike - this one is important. I didn't know that will cause the results to be calculated differently. What is the benefit of using the Currency data type? In order to keep all the calculation precisely, should I use Decimal data type in all columns with numbers?
@masterof5 жыл бұрын
On the other hand, I remember I have seen it somewhere, but struggled to understand this: When I make a pivot table from the data model, the column total in the pivot table doesn't seem to be calculated correctly. I had to switch off the total in the pivot table and do a formula line to calculate the total instead. How to prevent/avoid this situation? Manually build a total line for pivot table isn't difficult, but it gets tricky in a pivot chart. Thank you Mike...
@excelisfun5 жыл бұрын
Yes, I think Decimal most of the time to keep precision is good and then use the formatting on the Measures or in the reports at the end. Unless the business calculation requires rounding at some points, like money often does for invoices, payroll and other, then we should manually round.
@excelisfun5 жыл бұрын
@@masterof There are 100s of reasons that the totals in a DAX Data Model PivotTable could be incorrect. We have to analyze that one situation at a time. It might be becasue of different Data Types and math, but it could be many other reasons also.
@jeffkasavan934 жыл бұрын
Mike, thanks for the information. You make a valid "(decimal) point". :) :)
@excelisfun4 жыл бұрын
Niiiiiiiice!!!!
@danjarupath2 жыл бұрын
Awesome 👍👍👍👍😎😎😎😎
@excelisfun2 жыл бұрын
Important oddity to know for sure : )
@ndjanardhan5 жыл бұрын
Thanks you sir, for great tips about decimal
@excelisfun5 жыл бұрын
You are welcome, Janardhan!!!!
@johnborg60055 жыл бұрын
That was great and interesting. Thanks Mike :)
@excelisfun5 жыл бұрын
You are welcome for the interesting, John Borg!!!
@sumardjo3 жыл бұрын
thanks information very clear thanks
@excelisfun3 жыл бұрын
You are welcome, Rusdi!!! Thanks for your consistent support : ) : )
@HachiAdachi5 жыл бұрын
I have been under the notion that the use of currency data type would result in reduction in data size, so I have been quick to use the data type especially when working with a large dataset (usually in PQ). Now you make me wonder if the benefit of smaller data size (and maybe some performance improvement) is worth the cost of potential inaccuracy...
@excelisfun5 жыл бұрын
It all comes down to the precision of the calculation. Your idea of using Currency to reduce size, can reduce size, and if all the columns require up to 4 decimals, then that is fine! I like to manually round (ROUND or Number.Round) in accordance with the rules for each calculation...
@davidpellatt35014 жыл бұрын
Hi Mike, To be honest I nearly always upload my data to Power Query and set the data types there before adding the data to the data Model. I then set the data type only within my DAX Measures. Regards.
@excelisfun4 жыл бұрын
Thanks for the tip, David!
@shubhampawar85063 жыл бұрын
I will keep it all decimal
@excelisfun3 жыл бұрын
Not in Excel worksheet or Power Query, but DAX...
@shubhampawar85063 жыл бұрын
@@excelisfun Yes 😊
@stevennye50755 жыл бұрын
well done!
@excelisfun5 жыл бұрын
So much different than Number Formatting in Excel, right Steven Nye?
@davebowman53925 жыл бұрын
Thanks Mike
@excelisfun5 жыл бұрын
You are welcome, Dave Bowman!!!!
@mohamedchakroun49735 жыл бұрын
In this situation i stocks all data as a decimal :-)
@excelisfun5 жыл бұрын
I agree : )
@simfinso8585 жыл бұрын
If I am making payments I will use Decimal & If I am Receiving money i will use currency.
@hosseinhosseinpoor95612 жыл бұрын
top
@gentle2005phir5 жыл бұрын
Hope CDW will be >= WDC always, due to rounding up in C