Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Usman05635
New Member

AND function not working in POwer query

Hello Guys ! I am using this formula in Power query but it showing only else value 

 

if [Date Closed]="null" and [Critical Defect]0 then 1 else 0

1 ACCEPTED SOLUTION
CNENFRNL
Community Champion
Community Champion

if [Date Closed] is null and [Critical Defect] = 0 then 1 else 0

Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

View solution in original post

3 REPLIES 3
CNENFRNL
Community Champion
Community Champion

if [Date Closed] is null and [Critical Defect] = 0 then 1 else 0

Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

Thankyou so much but why = was not working and please adivse the if formula for date Column.thanks

ronrsnfld
Super User
Super User

Perhaps the contents of the cell is actually null and not a string containing null.  Try removing the quote marks around null.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Top Solution Authors
Top Kudoed Authors