Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi All,
Solved! Go to Solution.
@Anonymous this make sense and here is the solution, add following measures
Recent Date = CALCULATE( MAX( Table3[Date] ), ALLEXCEPT( Table3, Table3[Data] ) ) Latest Date = CALCULATE( MAX( Table3[Date] ), ALL() ) # of Days = DATEDIFF( [Recent Date], [Latest Date], DAY )
I believe above will meet your requirement, take some time to read this post on how to get answer quickly
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
@Anonymous do you have refresh date in your data model, if yes, you can use datediff function to calculate # of days.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Hi , Thanks for your response,
as mentioned - i have only one column in my data model( MYTable(date) ,max date would be my refreshdatemax(MYTable(date)) , and latest date would be latest MYTable(date).
formula would be max(MYTable(date)) - latest (MYTable(date).) we need to build this logic .
Thanks
@Anonymous confusing part is your example dataset doesn't have May 20th, 2019 as latest date, as per your example dataset the latest date is May 18th, 2019.
So if I have to work on example data set, am I using May 18th, 2019 as most recent date or today's date.
Just a note, if you are providing sample data, make sure your expected result is based on that sample data, it just adds extra confusion what you want?
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Thanks for your prompt response ,
and sory for confusion .
yes please use may 18th 2019.
Thanks
@Anonymous isn't in that orange will have recent date = May 18th, 2019 and differnce of days will be zero? Another confusing part on your question.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
here is the sample data
@Anonymous this make sense and here is the solution, add following measures
Recent Date = CALCULATE( MAX( Table3[Date] ), ALLEXCEPT( Table3, Table3[Data] ) ) Latest Date = CALCULATE( MAX( Table3[Date] ), ALL() ) # of Days = DATEDIFF( [Recent Date], [Latest Date], DAY )
I believe above will meet your requirement, take some time to read this post on how to get answer quickly
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.