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
Anonymous
Not applicable

How to capture the spike in data for a particular product on the same day?

How to capture the spike in data for a particular product on the same day,lets say the price keep changing and we have the following data points to be plotted as a line graph,

1.Time stamp

2.Product ID

3.Price of the Product

 

All I want to do is to be capable of comparing the product price and show the spike alone in a different color.

 

SPike.PNG

2 REPLIES 2
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

Would you like to get the max price per day to show on the line graph?

If so, you could create a column to get "date" from "date/time" column,

Date=[datetime].DATE

then create a measure to get the max price per day

max price=CALCULATE(MAX([Price]),ALLEXCEPT(Table,[Date]))

Then you can color the specific values conditionally as below:

https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting

 

If not, please let me know.

Best Regards
Maggie

 

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

Anonymous
Not applicable

Thanks for responding,I also need to consider the time,even the seconds should be taken into account for identifying the spike.Can you please help on this.

@v-juanli-msft 

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

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.