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.
Hello All,
I need to find something from my dataset which seems to be complicated for me, if anyone could help.
As you can see in the data, once a tenant moves out the net rent might change for the apartments(apartment_index). I want to create a measure which gives me information for all the apartments where there is a moveout and new movein if there is higher or lower difference in Net Rent/sqm.
Example. AA2372M011 has lower NetRent/sqm when a new tenant movesIn.
Similarly, AA2373M002 has increased in NetRent/sqm value after new tenant movesIn.
I don't know how and where to start for this particular problem.
Hi,
Share the link from where i can download your PBI file. You may share a small dataset. More importantly, share the exact result you are expecting.
Hi,
Try this calculated column formula
=if(LOOKUPVALUE(price_check[Net Rent/ sqm],price_check[einzug],CALCULATE(MAX(price_check[einzug]),FILTER(price_check,price_check[Apartment Index]=EARLIER(price_check[Apartment Index])&&price_check[einzug]<EARLIER(price_check[einzug]))),price_check[Apartment Index],price_check[Apartment Index])>[Net Rent/ sqm],"Lower",if(LOOKUPVALUE(price_check[Net Rent/ sqm],price_check[einzug],CALCULATE(MAX(price_check[einzug]),FILTER(price_check,price_check[Apartment Index]=EARLIER(price_check[Apartment Index])&&price_check[einzug]<EARLIER(price_check[einzug]))),price_check[Apartment Index],price_check[Apartment Index])<[Net Rent/ sqm],"higher","Same"))
Hope this helps.
Hi @Ashish_Mathur, Thank you for the formula. But when I tried this, I'm getting "A table of multiple values was supplied where a single value was expected" error. What could be the reaosn for this ?
Hi,
I did not face this problem in the file that you shared with me. Share the link from where i can download your PBI file.
Hi @Ashish_Mathur, Sorry because of company policy I cannot share whole file with you. But i will try to find why I am getting error in my file where data is nearly same as of the shared file.
@Anonymous,
Drag measure below to visual level filter and set Show items when the value is greater than 1.
Measure = CALCULATE ( DISTINCTCOUNT ( price_check[Net Rent/ sqm] ), ALLEXCEPT ( price_check, price_check[Apartment Index] ) )
Hi ,
It would be easy to simulate and propose some solution if we have some sample data handy in a file.
try this,
- Flag those apartment where is there is come movements like moveout/move in- you probably know the logic , i think you can use ausug date , also check and einzug is >= ausug for the same apartment. this way you will get 2 record one where someone moveout and 2nd where someone moved in.
- use EARLIER function or play with Current month/ previous month ( if you know) to get value from previous month and current .
- find the different beween previoud and current rate
- filter where Difference <>0
it is not straight forward , but really have to spend time and change to logic to get the desire result.
share data if possible so i could try something at my end.
Good luck !
SS
Hi @BobBI,
Thank you for your reply, I am also trying using Earlier but I'm afraid(as per my knowledge) we cannot use Earlier in a measure. Although it's fine to use a calculated column here as well.
Regarding sharing data: I have no idea how can I share some data here in excel.
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 |
---|---|
148 | |
111 | |
93 | |
84 | |
66 |