cancel
Showing results for
Did you mean:
Anonymous
Not applicable

## Need help

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.

11 REPLIES 11
Anonymous
Not applicable

Super User III

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.

Regards,
Ashish Mathur
http://www.ashishmathur.com
Anonymous
Not applicable

Here is the link you can have the PB file.

Result which I am expecting.

Super User III

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.

Regards,
Ashish Mathur
http://www.ashishmathur.com
Anonymous
Not applicable

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 ?

Super User III

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.

Regards,
Ashish Mathur
http://www.ashishmathur.com
Anonymous
Not applicable

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.

Community Support

@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] )
)
```
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi @v-chuncz-msft Sam, I need something else, not what you have suggested.

Resolver III

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

Anonymous
Not applicable

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.

Announcements