Skip to content
Advertisement

SELECT … WHERE Query in DAX

I have a SQL query:

I want to rewrite it with DAX, but it isn’t working. Here is what I have now:

How would I create a similar query with DAX?

Advertisement

Answer

The SQL predicate that is used here translates to starts with ds.

Example

s1

The exact DAX equivalent Measure would be

s2

Internally FILTER ( VALUES ( 'Table'[doc] ), LEFT ( 'Table'[doc], 2 ) = "ds" ) returns a table like this

s3

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement