Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
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.
User | Count |
---|---|
10 | |
8 | |
5 | |
5 | |
4 |