The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi!
I have product column, date column and price column i need to divide the price column as start price and end price Start price the startingprice of the product in a period and end price is the last price of that product in that period and i need to display a column as how many time sthe price is change for that product. can you plz help me out to sort it.
Solved! Go to Solution.
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
Someone (including me) may have a solution to this problem. Why are you posting it under issues. Post it as a normal question.
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
Hi,
How will one know the beginning and ending price if for a particular product, a month appear multiple times. For Bezel-FR there are two rows for August, 2014. So what should the last price be?
price | date | Product |
3972286.6 | May, 2016 | MOULDING ASSY |
4011542.6 | May, 2016 | GARNISH ASSY |
4052032.36 | May, 2016 | CLOTH RR |
3960105.32 | May, 2016 | T-SCREW |
3920401.32 | May, 2016 | PAFL PAD |
3999071.96 | May, 2016 | HA PAD |
Hi,
Share some data and show the expected result.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
120 | |
85 | |
75 | |
55 | |
44 |
User | Count |
---|---|
136 | |
128 | |
78 | |
64 | |
63 |