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
I need to calculate a discount of a price. The problem is, that the [ReferencePrice] is a measure in itself, which is why i can not add a calculated column.
When i create a measure to calculate the discount i run into "out-of-memory"-errors. Interestingly only the subtraction part of the calculation seems to be the issue.
No Problem:
Try:
Discount =
VAR _div =
CALCULATE (
DIVIDE ( SELECTEDVALUE ( FactPrice[Price] ), [ReferencePrice], 0 )
)
Return 1-_div
Proud to be a Super User!
Thanks for the suggestion, but unfortunately it doesn't work. I can return the VAR but not 1-VAR.
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 |
---|---|
42 | |
23 | |
21 | |
15 | |
15 |
User | Count |
---|---|
45 | |
31 | |
30 | |
18 | |
17 |