cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper I
Helper I

How to pass NULL values in IF statement in DAX

It is Solved Now by putting "" or BLANK() in IF statement
1 ACCEPTED SOLUTION
Super User II
Super User II

Why exactly you want NULL values in return from DAX Query?

If you want to compare NULL values of/from Datasource then the BLANK() function should suffice your needs.

 

Ref: https://docs.microsoft.com/en-us/dax/blank-function-dax

 

 

In the original data source, the column evaluated by the BLANK function might have included text, empty strings, or nulls. If the original data source was a SQL Server database, nulls and empty strings are different kinds of data. However, for this operation, an implicit typecast is performed and DAX treats them as the same.







Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!

Proud to be a Super User!




View solution in original post

2 REPLIES 2
Community Support
Community Support

Hi @Sreya ,

 

Glad that you have resolved it. Can you please reply your thread again and accept it as solution? Then this thread will be closed. Others who have the same questions will find the solution quickly and benefit from it. Thanks in advance!

 

 

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Super User II
Super User II

Why exactly you want NULL values in return from DAX Query?

If you want to compare NULL values of/from Datasource then the BLANK() function should suffice your needs.

 

Ref: https://docs.microsoft.com/en-us/dax/blank-function-dax

 

 

In the original data source, the column evaluated by the BLANK function might have included text, empty strings, or nulls. If the original data source was a SQL Server database, nulls and empty strings are different kinds of data. However, for this operation, an implicit typecast is performed and DAX treats them as the same.







Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!

Proud to be a Super User!




View solution in original post

Helpful resources

Announcements
secondImage

Experience what’s next for Power BI

Join us for an in-depth look at the new Power BI features and capabilities at the free Microsoft Business Applications Launch Event.

secondImage

Power BI Women

Join our monthly meetings and learning sessions.

secondImage

Congratulations!

We are excited to announce the Power BI Super Users!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors