Quantcast
Viewing all articles
Browse latest Browse all 1291

Measure with filter

Hi,

 

I want to filter a measure by using an existing filter in the universe.

My filter is like this:

 

 

DateUser:

@Select(Sales\Calendar Day) =  @Prompt('Date:','D',,Mono,)

 

What I want to do is to create a measure by using this filter.

 

 

SUM

(

CASE

   WHEN DP_Sales.CalendarDay >=

    TRUNC (@Where(DateUser),'mm')

    AND DP_Sales.CalendarDay <

    TRUNC (@Where(DateUser))+1

   THEN DP_Sales.Value

END

)

 

This gives an error like : "Syntax error : expected something between ')' and '='.

If I write a prompt (@Prompt('Date:','D',,Mono,Free)) instead of @Where(DateUser) it work as expected.

 

How can I use an existing filter instead of writing prompts again?

 

Thank you!


Viewing all articles
Browse latest Browse all 1291

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>