简体   繁体   中英

SQL Server Data Model Design for Compatibility and Performance with Power BI

I am re-designing a data model (in SQL Server) that will be populated via survey data and then analyzed in Power BI. I have limited experience with Power BI, so wanted to get some input on some questions please:

Money Columns
Several of the survey questions are money fields -- always in USD. The original data model was storing this data in columns of MONEY data type, but after doing some research it appears the prevailing sentiment is that it's better to use the DECIMAL data type to avoid any rounding errors in calculations.

I am planning to use DECIMAL(19,2) since the currency will always be in USD. Does this sound correct?

Other columns
For reference, the other columns I have so far are of type INTEGER , NVARCHAR , DATE , and FLOAT .

I'm assuming Power BI will be able to handle these conversions, but would like to know what are the ideal physical data types and precision to ensure the best compatibility and performance?

This is on SQL Server 2019. Thanks!

Yes, you can use decimal data type for money column, use without any currency signs.

Next go to data modelling and select column, in here you can you can choose any currency sign for that.

在此处输入图像描述

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM