Skip to Content
author's profile photo Former Member
Former Member

Get data for latest reporting month

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Jul 08, 2016 at 01:46 PM

    try this.

    =[revenue] Where ([Reporting Period] )=Last([Reporting Period]) In Report)


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.