Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi All,
Tried to find a solution but I cannot seem to find it.
I got this tabel:
T_DossierDetail | |||
Partcode | Pricedate | PriceCustld | Currprice |
A | 1-1-2020 | 10000 | 100 |
B | 1-1-2020 | 12000 | 200 |
C | 1-1-2020 | 10000 | 300 |
D | 1-1-2020 | 12000 | 400 |
A | 2-2-2020 | 10000 | 150 |
B | 2-2-2020 | 12000 | 200 |
C | 2-2-2020 | 10000 | 300 |
D | 2-2-2020 | 12000 | 450 |
A | 3-3-2020 | 10000 | 150 |
B | 3-3-2020 | 12000 | 250 |
C | 3-3-2020 | 10000 | 350 |
D | 3-3-2020 | 12000 | 450 |
I have a measure for last price by month
@MRR , Try a new column like
new column =
var _max = maxx(filter(table, [Partcode] = earlier([Partcode]) && [Pricedate] <earlier(Pricedate)),[Pricedate])
return
maxx(filter(table, [Partcode] = earlier([Partcode]) && [Pricedate] =_max ),[Currprice])
Refer last noncontinuous date logic in this blog for measure
Day Intelligence - Last day, last non continous day
https://medium.com/@amitchandak.1978/power-bi-day-intelligence-questions-time-intelligence-5-5-5c324...
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
49 | |
25 | |
20 | |
15 | |
12 |
User | Count |
---|---|
57 | |
49 | |
44 | |
19 | |
18 |