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

Month over Month Price Change (with last available price)

Hi everyone, I have a unit price table as follows:
powerBI_SS.PNG

I need to calculate month to month price movements (%).

 

I have 3 main product groups with a few subgroups.

Column sections present last year months.

 

The main issue for me is that some products weren't sell in 2 consecutive months.

Another possible problem could be that in one month could be a few sales of the same item.
That means I need average unit price on particular month.

 

I tried with various posted solutions but nothing have been seem working for me.

 

Thank you in advance for help!

14 REPLIES 14
Community Support Team
Community Support Team

Re: Month over Month Price Change (with last available price)

Hi @pawelj795 ,

 

You could ignore blank value with functions.

Here is my test file for your reference.

 

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

Re: Month over Month Price Change (with last available price)

It looks like it's gonna work!

One question though, how to hide infinity value in first month?

Community Support Team
Community Support Team

Re: Month over Month Price Change (with last available price)

Hi @pawelj795 ,

 

You could edit the DAX with an IF function.

IF(a<>BLANK(),
('Table (2)'[value]-a)/a,BLANK())

 

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

Re: Month over Month Price Change (with last available price)

%change.png

 

Turns out, it's not working properly.

 

Maybe because I have various values for the same month

pawelj795 Regular Visitor
Regular Visitor

Re: Month over Month Price Change (with last available price)

Turns out, its not working properly.

 

Maybe because I have various values for same month?
I mean in same month, one product could be sold for different prices -> that's why I want to calculate average price in every month


%change.png

pawelj795 Regular Visitor
Regular Visitor

Re: Month over Month Price Change (with last available price)

%change_v2.png

pawelj795 Regular Visitor
Regular Visitor

Re: Month over Month Price Change (with last available price)

up

Community Support Team
Community Support Team

Re: Month over Month Price Change (with last available price)

Hi @pawelj795 ,

 

You could use SUMMARIZECOLUMNS() function to create a table with average value per month( group by month ).

 

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

Re: Month over Month Price Change (with last available price)

Ok, I tried that solution but how modify your previous functions (rank & value%) to work with this new table?

I mean it's working only when I had one distinct value per month.
I cant really solve how to get deeper and have grouped values by group also, which mean I would have 3 values per every month.

Helpful resources

Announcements
New Kudos Received Badges Coming

New Kudos Received Badges Coming

Kudos to you if you earned one of these! Check your inbox for a notification.

Microsoft Implementation for Communities Wins Award

Microsoft Implementation for Communities Wins Award

Learn about the award-winning innovation that was implemented across Microsoft’s Business Applications Communities.

Power Platform World Tour

Power Platform World Tour

Find out where you can attend!

Top Kudoed Authors (Last 30 Days)
Users online (4,560)