Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Minimum product : Min(table[ Prod Name])
Min Prod Value=
Base-CALCULATE(sum('Table'[qty]),FILTER('Table','Table'[Oesc]=MIN('Table'[Oesc])))
"quantity (-) minimum prod value for ex: (10-0.02=9.98)
Need to consider the output of this previous row result (-) qty Ex: (9.98-0.03=9.95)
Formula: 10-0.02=9.98
9.98-0.03=9.95
9.95-0.04=9.91
9.91-0.05=8.86
Solved! Go to Solution.
Hi @RuchiSharma ,
For this you need to add a measure similar to this one:
Output = SUM('Table'[Base]) - CALCULATE(SUM('Table'[Qty]), 'Table'[Product NAme] <= MIN( 'Table'[Product NAme]))
Be aware that since the product names are in alphabeticle order the measure works properly, I believe that in your real data you will have an ID column so use that instead of the name on the measure.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi,
Please download my solution file.
Hope this helps.
Hi @MFelix @Ashish_Mathur
Slide changes came in the requirement Instead of subtraction we need multiplication can you please help me with how we can achieve this? Please refer below picture. I replaced the product name with Index so we can consider the index column as a product name.
Hi Ashish,
Can you please check answer is different.
I need an answer as per the below picture.
For Example:
0.02=0.2
0.0006=0.006
Hi,
What's the criteria for determining the next row? I am sure it is not the product name.
Hi @Ashish_Mathur
It is the product name
I have attached a screenshot for your reference
Also, I mentioned the formula.
You are welcome.
Hi @RuchiSharma ,
For this you need to add a measure similar to this one:
Output = SUM('Table'[Base]) - CALCULATE(SUM('Table'[Qty]), 'Table'[Product NAme] <= MIN( 'Table'[Product NAme]))
Be aware that since the product names are in alphabeticle order the measure works properly, I believe that in your real data you will have an ID column so use that instead of the name on the measure.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsUser | Count |
---|---|
84 | |
76 | |
75 | |
43 | |
36 |
User | Count |
---|---|
109 | |
56 | |
52 | |
48 | |
43 |