on 07-08-2016 2:39 PM
Hi team,
I have data in one of our column period as 201601,201602,201603 etc
now user may select multiple values but would want to display data for latest month only
say 201607 is latest so if i have a measure Revenue then revenue should be calculated only for 201607
I tried using below formula but it failed on one condition and i seriously have no clue right now to solve it
=[revenue] Where ([Reporting Period] =
FormatNumber(Max(ToNumber([Reporting Period]));"0") ForAll ([Reporting Period]))
this is failing in one instance where say i have a value in 201606 ie) previous month
but though i tell the formula to take the latest value which is 201607
in my result i am getting values for previous month value also
Any ideas on how can we solve it
I can't use currentdate logic because i can run my reports across multiple reporting periods so currentdata logic will fail
Regards,
Akshat
try this.
=[revenue] Where ([Reporting Period] )=Last([Reporting Period]) In Report)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ya i am getting
its just the entire logic is failing
if we have a value for previous month but not for current
eg:
data in 201604
abc 10
def 5
data in 201605
abc 5
def ""
so when i run the report in 201605 using max and forall i am getting data as
abc 5
def 5 (which it's showing for 201604 may be because of forall)???
Hi Amit,
a quick help
I was trying to use last logic on one of my formulas
formula is : To calculate/show Revenue for total year, say its 2016 so 2015 should be there
=[Revenue] Where (Left([Reporting Period];4) =FormatNumber(ToNumber(Left(Last([Reporting Period]);4))-1;"0"))
But it's displaying as blank though we have values
any idea what might be the issue?
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.