Blog

HÀM INT TRONG POWER BI DAX

ham-int-trong-power-bi-dax-1

Last updated on February 11th, 2022 at 11:53 am

MIÊU TẢ

Hàm INT giúp làm tròn số xuống một số tới số nguyên gần nhất. Hàm Int trong Excel có những ứng dụng như vậy. Còn trong Power BI thì sao?

CÁCH DÙNG / CẤU TRÚC

INT( <Số cần làm tròn> )

THAM SỐ

<Số cần làm tròn> : Có thể là 1 số cụ thể hoặc 1 biểu thức tính trả về giá trị số

GIÁ TRỊ TRẢ VỀ

Là một số nguyên

CHÚ Ý

Hàm INT còn được dùng để tìm phần nguyên của 1 phép chia, nhưng chỉ áp dụng với số dương.

Hàm INT cho ra kết quả giống với hàm TRUNC với tham số là số dương, nhưng khác ở tham số âm.

VÍ DỤ

ham-int-trong-power-bi-dax-1

Trong hình trên, ta thấy hàm INT:

  • Với số nguyên sẽ được làm tròn xuống, hướng về 0
  • Với sốâm sẽ được làm tròn xuống, hướng xa số 0
  • Số 0 sẽ không thay đổi

Nguồn: Internet

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    bujangjp slotsensa slot88 slot4d slot4d slot4d sv388 slot88 suhubet demo slot slot4d demo slot https://fabritec.pe/asesor.php suhubet bujangjp https://kibf.pk/ slotsensa buku303 slot4d sbobet slot gacor slot gacor slot gacor totogacor slot thailand slot thailand slot gacor slot luar negeri slot gacor 4d totogacor slot gacor wd jutaan slotsensa slot gacor slot gacor slotsensa slot gacor slot dana slot dana https://cliffcrestinn.com/ totogacor totogacor demo slot slot 4d totogacor totogacor demo slot totogacor slot thailand totogacor bujangjp situs gacor situs gacor Situs Gacor 4D Thailand Situs Gacor 4D SLOT4D