Forum Discussion
regarding display date
- 8 years ago
Hi JAVED,
You can create measures below:
StartPrice = CALCULATE(MIN('Table1'[price]),FILTER(ALL(Table1),'Table1'[Product]=MAX('Table1'[Product])))
EndPrice = CALCULATE(Max('Table1'[price]),FILTER(ALL(Table1),'Table1'[Product]=MAX('Table1'[Product])))
No.Revisions = var t=SUMMARIZE('Table1','Table1'[Product],'Table1'[date],"p",MAX('Table1'[price]))
return
COUNTX(t,[p])-1Please see attached pbix file.
Best Regards,
Qiuyun Yu
Sorry, I edited the data,the data is the sale of product in diffrent months and years. The price change of the products in few months, For example I need to show the 2018 price of that item in end price and 2012(started sale) price of that item in start price
Hi JAVED,
You can create measures below:
StartPrice = CALCULATE(MIN('Table1'[price]),FILTER(ALL(Table1),'Table1'[Product]=MAX('Table1'[Product])))
EndPrice = CALCULATE(Max('Table1'[price]),FILTER(ALL(Table1),'Table1'[Product]=MAX('Table1'[Product])))
No.Revisions = var t=SUMMARIZE('Table1','Table1'[Product],'Table1'[date],"p",MAX('Table1'[price]))
return
COUNTX(t,[p])-1
Please see attached pbix file.
Best Regards,
Qiuyun Yu