Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I already searched the forum and couldn't not find the solution so far. I created a measure for the market vlaue weighted construction year of a real estate portfolio. This works fine as long as I select the whole portfolio or a single property but as soon as I have two properties it doesn't work anymore. This is because of the market value weightings (MV%) which is based on the whole portfolio but how can I make the MV% dynamic? What I mean, if I for e.g. select the canton VD (5 properties) the weighted construction year is 281 instead of 1984.
many thanks for your help! (how can I upload an example of the measures I did?)
Solved! Go to Solution.
Hi,
Please change your original [MV_tot] to this:
MV_tot = CALCULATE(SUM(Sheet1[Market Value]), ALLEXCEPT(Sheet1,Sheet1[Cantone]))
The result shows:
See the attached pbix file.
Best Regards,
Giotto
Many thanks for your reply and sorry for my late response, I was on vacation.
This actually only solves part of the problem. When you deselect VD, you get a weighted Construction Year of 15697 which is certainly not correct. I'm looking for a solution, where the weightings adapts itself depending on the selection, no matter whether it's the canton, the location or rental income. Isn't there a way to have the weightings dynamically depending on the selection/filter?
@Anonymous share sample data with expected output, you can share using onedrive/google drive 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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |