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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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