cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AS31 Member
Member

Need help

Hello All,

 

I need to find something from my dataset which seems to be complicated for me, if anyone could help.

Capture19.PNG

 

 

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
BobBI Member
Member

Re: Need help

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

 

AS31 Member
Member

Re: Need help

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.

AS31 Member
Member

Re: Need help

Hi @Ashish_Mathur , Could you please help me with this one. TIA

Super User
Super User

Re: Need help

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.

AS31 Member
Member

Re: Need help

Hi @Ashish_Mathur

 

Here is the link you can have the PB file.

 

 

Result which I am expecting.

Capture20.PNG

 

 

 

 

Community Support Team
Community Support Team

Re: Need help

@AS31,

 

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.
Super User
Super User

Re: Need help

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.

AS31 Member
Member

Re: Need help

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 ?

AS31 Member
Member

Re: Need help

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

Helpful resources

Announcements
Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Summit North America

Power Platform Summit North America

Register by September 5 to save $200

Virtual Launch Event

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Users Online
Currently online: 423 members 4,142 guests
Please welcome our newest community members: