Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
I want to count the total of trucks used in my table.
Dimension = Week, performanceday
Expression = count(distinct(trucks))
now I like to only count monday -> friday so i was thinking about this:
count(DISTINCT{< Year = {$(=(max(Year)))}, PerformanceWeekday = {'mo'} + PerformanceWeekday ={'tu'} + PerformanceWeekday ={'we'} + PerformanceWeekday ={'th'} + PerformanceWeekday ={'fr'} >}trucks)
i'm pretty sure this won't work so whats the best solution?
kind regards
count(DISTINCT{< Year = {$(=(max(Year)))}, PerformanceWeekday = {'mo','tu','we','th','fr'} >}trucks)
can you post you application ? Instead of putting so many set, it can be achieved by adding one flag for performance.
count(DISTINCT{< Year = {$(=(max(Year)))}, PerformanceWeekday = {'mo','tu','we','th','fr'} >}trucks)
Hi,
In place of this you have to load data from Monday to Friday and max year then it will show right data.
Thanks & Regards
god how could I make such an error. thanks!
Hi
try like this:
count({< Year = {$(=(max(Year)))}, PerformanceWeekday = {"*"} - {'Sat','Sun'} >} DISTINCT trucks)
I assume that PerformanceWeekday holds the weekday name, eg- Sat,Sun,Mon, etc