The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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!
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.
@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.
User | Count |
---|---|
28 | |
10 | |
8 | |
6 | |
5 |
User | Count |
---|---|
33 | |
13 | |
12 | |
9 | |
7 |