The ISBLANK function in Power BI's Data Analysis Expressions (DAX) language checks whether a value is blank or not. It returns TRUE if the value is blank, and FALSE otherwise.
Syntax:
ISBLANK(<value>)
<value>
: This is the value you want to check for blankness.
Example:
Let's say you have a table named Sales
with a column named SalesAmount
that contains sales data, and you want to check if each value in this column is blank or not. Here's an example:
To use the ISBLANK function in Power BI's DAX to check if each value in the
SalesAmount
column is blank, you would create a calculated column with the following expression:IsBlankSales = ISBLANK(Sales[SalesAmount])
This will create a new column IsBlankSales
, which will contain TRUE for rows where the SalesAmount
is blank (like rows 2 and 4 in the example data) and FALSE for rows where it is not blank.
Comments
Post a Comment