Hello Folks, I seem to be running into a bind trying to put together what I think should be a simple formula to give the values for the latest (Max date) in my data.Ā I have created a dynamic formula to give me the latest date in my data using “Latest Date = MAX(Combined_Ridership1[Date])“. As you can see in the snippetĀ below, I am then using this newly created measure as an input to a longer formula to give the value (in this case ridership) for the Max day in my data so that I can create a dynamic card that would display the latest ridership numbers. However, the formula is giving me the total ridership numbers (111,170) for all the dates in my data (matrix on the left) instead of just 361 which is the ridership for 06/16/2020 (max date with ridership numbers in my data). How can I modify my formula to give me a dynamic out put of ridership values for my Max Date such that if update the database with 06/17/2020 values (let’s say 370), the card should correspondingly update to show the new max date ridership values?
Thank you in advance for your help and time.
Best,Ā Tony
—————————— Tony Wambui Program Analyst ——————————
Lutz Bendlin
Member
June 20, 2020 at 8:20 PM
when you say “dynamic formula” what do you mean – did you create a measure or did you create a calculated column?
Depending on your particular scenario one or the other would be the right approach.Ā Calculated columns are calculated ONCE during each data refresh.Ā Measures, in contrast, are calculated EVERY TIME your users interact with your report.
—————————— Lutz —————————— ——————————————-
Tony Wambui
Member
June 20, 2020 at 9:30 PM
I created a measure
——————————————-
Lutz Bendlin
Member
June 20, 2020 at 10:04 PM
in that case you need to break out of the filter context
Latest Date = calculate(MAX(Combined_Ridership1[Date]),ALL(Combined_Ridership1))
—————————— Lutz —————————— ——————————————-
Tony Wambui
Member
June 20, 2020 at 11:40 PM
Thank you so much Lutz, your formula resolution worked very well! And just to make sure that I fully understand your resolution well, which filter context are you breaking out of using the ALL function? This is the part that I am not fully comprehending.
Again, many thanks Lutz!
Best!
—————————— Tony Wambui Program Analyst —————————— ——————————————-
Please note:
This action will also remove this member from your connections and send a report to the site admin.
Please allow a few minutes for this process to complete.
Report
You have already reported this .
Welcome to our new site!
Here you will find a wealth of information created for peopleĀ that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!