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

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.

Reply
Anonymous
Not applicable

Market value weighted construction year

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?)

1 ACCEPTED SOLUTION
v-gizhi-msft
Community Support
Community Support

Hi,

 

Please change your original [MV_tot] to this:

MV_tot = CALCULATE(SUM(Sheet1[Market Value]), ALLEXCEPT(Sheet1,Sheet1[Cantone])) 

The result shows:

6.PNG

See the attached pbix file.

 

Best Regards,

Giotto

View solution in original post

4 REPLIES 4
v-gizhi-msft
Community Support
Community Support

Hi,

 

Please change your original [MV_tot] to this:

MV_tot = CALCULATE(SUM(Sheet1[Market Value]), ALLEXCEPT(Sheet1,Sheet1[Cantone])) 

The result shows:

6.PNG

See the attached pbix file.

 

Best Regards,

Giotto

Anonymous
Not applicable

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?

parry2k
Super User
Super User

@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.

Anonymous
Not applicable

I hope this Link works

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors