Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
I've got something which I need to do and I'm really struggling on how to implement the theory into Power BI.
So the theory is, we have properties with multiple offers. Some fall through, some don't. If they fall through then the property can be resold.
In order to make sure the numbers aren't incorrectly inflated, we make sure to select an option showing if it's resold and then calculate the different from the original offer. The Original Offer is the one without a value in the "Resale?" column.
I'm having a hard time implementing this in Power BI, does anyone have any ideas of how I can do this?
I'll include the Excel file just incase you want to see it
Cheers,
Mike
Solved! Go to Solution.
Hi @michael_knight ,
You can create the diff column like this:
diff =
VAR tb =
SUMMARIZE (
ALL ( Theory ),
'Theory'[Property Name],
Theory[Date Offer Accepted],
Theory[Resale?],
'Theory'[Total IN],
"T", CONVERT ( 'Theory'[Total IN], INTEGER )
)
RETURN
IF (
ISBLANK ( 'Theory'[Resale?] ),
0,
'Theory'[Total IN]
- SUMX (
FILTER (
tb,
[Date Offer Accepted]
= MINX (
FILTER ( tb, [Property Name] = EARLIER ( Theory[Property Name] ) ),
[Date Offer Accepted]
)
&& [Property Name] = EARLIER ( Theory[Property Name] )
),
[T]
)
)
T/F column:
true or false =
IF ( [diff] = 0, TRUE (), FALSE () )
Attached the sample file in the below, hopes to help you.
Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Just been having a play around and I'm still nonethewiser. Added another column to show which is the original offer. The Original Offer has returns "True". The the screenshot below the first offer should be the original so the bottom 3 should all be true, which isn't the case
On the screenshot below I was having a play around with the Total In figures and it turns out that the True or False depends on the Total In in some cases, which is unusual
Does anyone have any suggestions?
https://www.dropbox.com/s/6r1v3a3rqztbfec/Help%20-%20Resale.pbix?dl=0
Cheers,
Mike
Hi @michael_knight ,
You can create the diff column like this:
diff =
VAR tb =
SUMMARIZE (
ALL ( Theory ),
'Theory'[Property Name],
Theory[Date Offer Accepted],
Theory[Resale?],
'Theory'[Total IN],
"T", CONVERT ( 'Theory'[Total IN], INTEGER )
)
RETURN
IF (
ISBLANK ( 'Theory'[Resale?] ),
0,
'Theory'[Total IN]
- SUMX (
FILTER (
tb,
[Date Offer Accepted]
= MINX (
FILTER ( tb, [Property Name] = EARLIER ( Theory[Property Name] ) ),
[Date Offer Accepted]
)
&& [Property Name] = EARLIER ( Theory[Property Name] )
),
[T]
)
)
T/F column:
true or false =
IF ( [diff] = 0, TRUE (), FALSE () )
Attached the sample file in the below, hopes to help you.
Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@michael_knight , Try new column like
diff =
var _1 = maxx(filter(Table, [property name] = earlier([property name])) lastnonblankvalue([Date offer accepted], [Total IN]))
return
if (isblank(_1) , blank(), [Total IN] -_1)
Hi @amitchandak We're on the right track!
I've found an unusual issue with that measure. Some dates are doing it in reverse order. In the image below it should be using 1st January as the date to compare the rest to, rather than the 9th October
It seems to be working perfectly fine for the image below. I can't work out the difference
I'll add a PBIX file below
https://www.dropbox.com/s/6r1v3a3rqztbfec/Help%20-%20Resale.pbix?dl=0
Cheers,
MIke
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
97 | |
69 | |
46 | |
39 | |
33 |
User | Count |
---|---|
163 | |
110 | |
61 | |
51 | |
40 |