Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
GenZam1988
Frequent Visitor

Price variation vs other

Hi can you helpme to solve this scenary in PB 

I need to compare the variation of product prices, always against the first product.

And show in a table like the example below

GenZam1988_0-1709766240664.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @GenZam1988 ,

Please try the following methods and check if they can solve your problem:

1.Create the simple table.

vjiewumsft_0-1709777313432.png

2.Create the new column to calculate. Drag the column into the table visual and select don’t summarize.

 

Dif_price = 
VAR price_1 = SUMX(FILTER('Table', 'Table'[Product] = "Product 1"),'Table'[Price])
VAR dif_price = (DIVIDE('Table'[Price], price_1) - 1)
RETURN
    IF(dif_price = 0, BLANK(), dif_price)

 

vjiewumsft_1-1709777355210.png

3.Select percentage value and one number of decimal.

vjiewumsft_2-1709777372130.png

4.The result is shown below.

vjiewumsft_3-1709777407509.png

Best Regards,

Wisdom Wu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @GenZam1988 ,

Please try the following methods and check if they can solve your problem:

1.Create the simple table.

vjiewumsft_0-1709777313432.png

2.Create the new column to calculate. Drag the column into the table visual and select don’t summarize.

 

Dif_price = 
VAR price_1 = SUMX(FILTER('Table', 'Table'[Product] = "Product 1"),'Table'[Price])
VAR dif_price = (DIVIDE('Table'[Price], price_1) - 1)
RETURN
    IF(dif_price = 0, BLANK(), dif_price)

 

vjiewumsft_1-1709777355210.png

3.Select percentage value and one number of decimal.

vjiewumsft_2-1709777372130.png

4.The result is shown below.

vjiewumsft_3-1709777407509.png

Best Regards,

Wisdom Wu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

 

RossEdwards
Solution Sage
Solution Sage

You might find it difficult to get a good answer with such a minimal description.  The answer to your question will depend on how you have modelled your data.  How would an algorithm know what a "first" price is?  Do you flag in your dataset what is the first product?  Do you group your products in a manner so you can collate the first and others?  Is "first" something you expect to be a user choice field rather than something stored in the data?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.