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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Another DAX syntax help required

Hi, 

If I want to create a measure like 

Measure= TablenameA[columnname], tablenameB[Columnname] = null, ISBLANK (TablenameA[columnname])

 

what would be the correct syntax, I seem to get syntaxes wrong most of the time 

 

basicly first table and column already filtered so I reuse that column first than I want to say if column two = null than TRUE if the value is blank; otherwise FALSE.

 

thanks 

2 ACCEPTED SOLUTIONS

Maybe try something like IF(SELECTEDVALUE(tablename[columnname], 'x') = BLANK(), ....)

or

IF(ISBLANK(SELECTEDVALUE(tablename[columnname], 'x') ), ....)

View solution in original post

Hi,

 

Try this

 

ISBLANK(tablename[columnname])

 

and

 

NOT(ISBLANK(tablename[columnname]))

 

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

any dax expert out  there can help?

Hi,

 

Without seeing the data and the relationships, it is very difficult to offer a solution.  Please share a dataset, describe the question and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

@Ashish_Mathur ok let me change my question

how do I say tablename[columnname] is euqual null

and 

 tablename[columnname] is euqual is not null

 

thanks 

Hi,

 

Try this

 

ISBLANK(tablename[columnname])

 

and

 

NOT(ISBLANK(tablename[columnname]))

 

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Maybe try something like IF(SELECTEDVALUE(tablename[columnname], 'x') = BLANK(), ....)

or

IF(ISBLANK(SELECTEDVALUE(tablename[columnname], 'x') ), ....)

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors