Forum Discussion
Akos07
4 years agoHelper I
Price calculations help
Hello, I run into a problem, and i cant find a good solution. I could use some advice 🙂 My problem: I have a price table that contains gross prices, productid, start date, end date(nullable...
- Anonymous4 years ago
Hi Akos07 ,
Please try:
Measure = var _id= CALCULATE(MAX('Table'[ID]),FILTER('Table',[start]<=MAX('Dates'[Date]) && ( [end]=BLANK() || [end]>=MAX('Dates'[Date])))) return MAXX(FILTER('Table',[ID]=_id),[Gross])Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
4 years agoNot applicable
Hi Akos07 ,
Please try:
Measure = CALCULATE(SUM('Table'[gross]),FILTER('Table',[start]<=MAX('Dates'[Date]) && ( [end]=BLANK() || [end]>=MAX('Dates'[Date]))))
Output:
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Akos07
4 years agoHelper I
Hey,
Thanks for the reply. I tried someting similar, but the problem is the same. As you can see 06.07 the gross prices adding up 740, it should remain 300.