• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Increase Sales Value upto a Number

dilawer5

Member
Hi,

I need to increase values of salestable(value column) upto a certain total value of 100,000. Please see below example.
 

Attachments

  • DAX Formula.jpg
    DAX Formula.jpg
    181.5 KB · Views: 11
So you need a goal seek?

Hmm, I'm not aware of any DAX that can perform it. Then again, I haven't really looked into goal seeking in DAX.

You could... use R if in PowerBI, I suppose.
 
Dear,

To make it simpler, Lets break it in two steps.

1. Calculate a factor by dividing :=Divide(100,000,Calulate(Sum(Table, Value),Filter(Product=ProductA),Datesbetween(Date,StardDate,Enddate))

for example outcome is 450%

2. Then Calulate(Sum(Table, Value),Filter(Product=ProductA),Datesbetween(Date,StardDate,Enddate))*450%

That I tried but ended up 100,000 from top to bottom all rows.
 
Last edited:
But is this complete sample of model? Looking at your attempt I assume you have date dimension table. Is that correct?
 
Last edited:
Here's how it can be done without date dimension table.

1. Factor
=10000/CALCULATE(SUM(salesvalue[Value]),FILTER(ALL(salesvalue),salesvalue[Time]<=201703))

2. Multiplied value
=SUMX(Filter(salesvalue,salesvalue[Time]>=201701&&salesvalue[Time]<=201703),salesvalue[Value]*[Factr])

See attached.
 

Attachments

  • Excel Sample for DAX Formula.xlsx
    131.6 KB · Views: 0
Back
Top