Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Everyone,
I'm fetching count(Distinct(Awards) if name='John'. count({$<Name={'John'}>} DISTINCT Awards)
I wanna restrict the year to 2015.
Can someone throw some limelight.
Try this
Sum({<Year ={"$(=max(Year))"}>}[Units])/Count(Distinct{<Year ={"$(=max(Year))"}>}[routeNumber])
Try something like this:
count({$<Name={'John'}, Year = {2015}>} DISTINCT Awards)
try,
count({$<Name={'John'}, Year ={"$(=max(Year))"}>} DISTINCT Awards)
Thanq Sinan.
Thanq Kush.
both of the solutions worked
Hi,
I wanna calculate the below expression using set analysis for year 2015 like
(Sum([Units])/Count(Distinct([route Number])))
If (Year=2015, (Sum([Units])/Count(Distinct([routeNumber]))))
Can you help me in the syntax pls.
Try this
Sum({<Year ={"$(=max(Year))"}>}[Units])/Count(Distinct{<Year ={"$(=max(Year))"}>}[routeNumber])
Thanq Kush.
Sum({<Year={2015}>}[Units])/Count({<Year={2015}>}Distinct([route Number]))
Welcome Mark