Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
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.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 57 | |
| 38 | |
| 33 | |
| 19 | |
| 16 |
| User | Count |
|---|---|
| 69 | |
| 66 | |
| 42 | |
| 32 | |
| 25 |