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 ,
Oh sorry for that.
So if the logic is ——
1.ID is not filtered , use the max gross
2.Select a specific ID, then the specific gross
3.Select multiple IDs, then the sum of gross?
Best Regards,
Eyelyn Qin