Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I want to select particular year and month using filter pane. I want to display data by selecting year,month simultaneously and display data for YTD. I want to get data of both Jan and Feb while I select Feb in filter pane.Thanks in advance
Yeah.It worked. But it is for measures i.e we are displaying count . But I need to pass date as parameter and show the data.Is it possible??Thanks in advance.
May be try an expression like this
Count({<OrderYear, OrderMonth, OrderDate = {"$(='>=' & Date(YearStart(Max(OrderDate)), 'YYYY-MM-DD') & '<=' & Date(Max(OrderDate), 'YYYY-MM-DD'))"}>} Sales)
Yeah.It worked. But it is for measures i.e we are displaying count . But I need to pass date as parameter and show the data.Is it possible??Thanks in advance.
In the screenshot, I have written the measure as suggested by you,but it is passing numeric values to expression which is measure i.e
count({<OrderYear, OrderMonth,
OrderDate = {"$(='>=' & Date(YearStart(Max(OrderDate)), 'YYYY-MM-DD') & '<=' & Date(Max(OrderDate), 'YYYY-MM-DD'))"}>}Sales)
But here I want to pass date as parameter for expression.Is it possible??
Yes exactly.
Then change Sales to Date...
Count({<OrderYear, OrderMonth, OrderDate = {"$(='>=' & Date(YearStart(Max(OrderDate)), 'YYYY-MM-DD') & '<=' & Date(Max(OrderDate), 'YYYY-MM-DD'))"}>} OrderDate)
In the below screenshot,I have selected 2018 Aug,but I need to get data from Jan to Aug i.e YTD . But the data for August is displaying.