Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi guys,
My first post which i am hoping you can help with !
Basically i have a table which returns the following
What i am trying to do is return just the lowest value within the customer price. This has been setup as an expression so hoping that this is possible?
Any help would be greatly appreciated.
Thanks!
Mel
Provide sample data please!
Simply this could be what you are after :
Min ( [YourCustomerPriceExpression] )
If then could you share the expression and clarify.
Sorry I thought the screenshot would suffice!
Here's the expression which is calculating the customer price
=Price-"Discount Amount"
Discount Amount is another expression.. Not sure if this helps?
What if you try :
min ( Price-"Discount Amount")
Unfortunately that just changes the values to "-" within the customer price
Hi
Assuming the customer price is calculated, then something like:
=Min(Aggr(Price * (1 - discount_perc), Price))
HTH
Jonathan
Hi Jon
unfortunately that has still returned "-" within the column..
To return the minimum price in the whole chart and repeat that value on each row use the TOTAL clause in the aggregation function (this case its min):
min( Total [Customer Price] )
If you want the minimum amongst other dimensional values (subtotal) add the dimension value like this
min( Total <dimension> [Customer Price] )
However, if your [Customer Price] is actually an expression instead of just a field, the syntax will change. What is the expression for [Customer Price] ?
Hi there,
The expression which I am using to get the Customer Price is quite simple.. It just the price column minus the discount amount.
Expression for discount amount is - =((Price/100)*discount_perc)
Customer Price - =Price-"Discount Amount"
Thanks