cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
JAVED Regular Visitor
Regular Visitor

regarding display date

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.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Moderator v-qiuyu-msft
Moderator

Re: regarding display date

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

 

q4.PNG

 

Please see attached pbix file. 

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
6 REPLIES 6
Super User
Super User

Re: regarding display date

Hi,

 

Share some data and show the expected result.

JAVED Regular Visitor
Regular Visitor

Re: regarding display date

pricedateProduct
   
3972286.6May, 2016MOULDING ASSY 
4011542.6May, 2016GARNISH ASSY
4052032.36May, 2016CLOTH RR 
3960105.32May, 2016T-SCREW
3920401.32May, 2016PAFL PAD 
3999071.96May, 2016

HA PAD 

 

Super User
Super User

Re: regarding display date

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?

JAVED Regular Visitor
Regular Visitor

Re: regarding display date

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

Super User
Super User

Re: regarding display date

Someone (including me) may have a solution to this problem.  Why are you posting it under issues.  Post it as a normal question.

Moderator v-qiuyu-msft
Moderator

Re: regarding display date

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

 

q4.PNG

 

Please see attached pbix file. 

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Summit North America

Power Platform Summit North America

Register by September 5 to save $200

Virtual Launch Event

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Users Online
Currently online: 6 members 3,249 guests
Please welcome our newest community members: