Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Choose data versions to compare aginst

Hi,

 

I have a master dataset that gets automatically updated and is more or less in the following format:

Upload Date - Country - Value

 

The uploads happen now and then in quite ambiguous intervals. In my measurement, I would like to calculate the growth percentage of the value between two upload chosen upload dates. 

E.g. Choose that I would like to get the growth rate of 01-01-2019 version against 04-02-2019 version. Ideally, I would like to have filters where I could choose which upload version to compare against another chosen upload version.

 

Any help will be greatly appriciated!

 

2 REPLIES 2
tarunsingla
Solution Sage
Solution Sage

You would need 2 different measures to capture the 2 dates of report viewer's choice (selection dates from the two slicers).

And then use those 2 selected dates values in a calculated measure to lookup the values and then compute the growth.

 

Something like:

 

Growth = 

var fromDate = SELECTEDVALUE(date1Field) // or MIN(dateField)

var toDate = SELECTEDVALUE(date2Field) // or MAX(dateField)

 

RETURN DIVIDE(LOOKUPVALUE(valueField, dateField, fromDate), LOOKUPVALUE(valueField, dateField, toDate))

 

Hope this helps.

parry2k
Super User
Super User

@Anonymous Read this post to get your 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.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.