Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreShape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.
Hello experts,
I wanted to create a calculated column where:
if Column A = Column B, display 1. else 0.
but the issue is, sometimes both column are "Blank", so it will detect as the same, so it will display as 1, not 0.
i want if both blank, display 0.
Really need your help on this.
Thanks in advance.
Zety
Solved! Go to Solution.
@nurulizzaty i hope this helps you!THANK YOU!!
try this
Column = IF('Table'[ID] == BLANK() || 'Table'[Index] == BLANK() , 0,
IF('Table'[ID] = 'Table'[Index] , 1 , 0))
Hi @nurulizzaty
Please check below:
Revised =
IF (
AND ( ISBLANK ( Tables[Id] ), ISBLANK ( Tables[Index] ) ),
0,
IF ( Tables[Id] = Tables[Index], 1, 0 )
)
Hope it helps.
Hi @nurulizzaty
Or in your column terms, it would be:
Revised =
IF (
AND ( ISBLANK ( Tables[Column A] ), ISBLANK ( Tables[Column B,] ) ),
0,
IF ( Tables[Column A] = Tables[Column B,], 1, 0 )
)
Hope it helps.
THANK YOU ALL !! YOU GUYS ARE AWESOME! APPRECIATE IT ! :)))))
Hi @nurulizzaty
Or in your column terms, it would be:
Revised =
IF (
AND ( ISBLANK ( Tables[Column A] ), ISBLANK ( Tables[Column B,] ) ),
0,
IF ( Tables[Column A] = Tables[Column B,], 1, 0 )
)
Hope it helps.
Hi @nurulizzaty
Please check below:
Revised =
IF (
AND ( ISBLANK ( Tables[Id] ), ISBLANK ( Tables[Index] ) ),
0,
IF ( Tables[Id] = Tables[Index], 1, 0 )
)
Hope it helps.
try this
Column = IF('Table'[ID] == BLANK() || 'Table'[Index] == BLANK() , 0,
IF('Table'[ID] = 'Table'[Index] , 1 , 0))
@nurulizzaty i hope this helps you!THANK YOU!!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Check out the November 2024 Power BI update to learn about new features.
User | Count |
---|---|
91 | |
86 | |
83 | |
76 | |
49 |
User | Count |
---|---|
145 | |
140 | |
109 | |
68 | |
55 |