The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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 |
---|---|
28 | |
11 | |
8 | |
6 | |
5 |
User | Count |
---|---|
35 | |
14 | |
12 | |
9 | |
7 |