Boolean Situations when Querying SSAS DMVs

Date:


Boolean Comparison in SSAS DMVs, Error: A Boolean expression is not allowed in the context

In case you are querying SSAS DMVs it’s possible you’ll need to add some circumstances within the question.

One thing like getting all energetic relationships, maybe like beneath:

choose * from $SYSTEM.TMSCHEMA_RELATIONSHIPS the place IsActive="true"

Working the above question on an occasion of SSAS Tabular provides you the next error message:

Error: A Boolean expression isn’t allowed within the context …

Fixing that is fairly straightforward, run the beneath question to get energetic relationships:

choose * from $SYSTEM.TMSCHEMA_RELATIONSHIPS the place IsActive

Boolean Comparison in SSAS DMVs

And to get inactive relationships run this one:

choose * from $SYSTEM.TMSCHEMA_RELATIONSHIPS the place not IsActive

Boolean Comparison in SSAS DMVs

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Share post:

Subscribe

spot_imgspot_img

Popular

More like this
Related

20 Confirmed Concepts to Think about

Managing AWS prices may be tough, particularly when...

The Delusion of Gross sales Velocity: Why High quality Conversations Win B2B Gross sales

B2B gross sales leaders assume pace equals success,...