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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
PbiCeo
Helper II
Helper II

How to get value comparing the max and min stock prices

Hello everyone,

 

There is a table of the NY Dow stock prices for the last 1 month.

I want to get  a date when the min price falls more than 15% from the max price in the last 1 month.

How should it be calculated with DAX?

https://jp.investing.com/indices/us-30-historical-data

 

Date  CloseStartHighLowVolumeComparison with the previous day%
2020/7/24  26,469.89  26,533.41  26,625.70  26,402.86  497.97M  -0.68%
2020/7/2326,652.3326,955.9726,973.8526,560.04426.56M-1.31%
2020/7/2227,005.8426,824.5627,035.2426,794.19410.82M0.62%
2020/7/2126,840.4026,833.1427,025.3826,766.22367.24M0.60%
2020/7/2026,680.8726,660.2926,765.0226,504.20312.07M0.03%
2020/7/1726,671.9526,774.6226,808.4326,619.88300.52M-0.23%
2020/7/1626,734.7126,746.5726,879.1626,590.01288.04M-0.50%
2020/7/1526,870.1027,009.8127,071.3326,692.48388.26M0.85%
2020/7/1426,642.5926,044.1726,690.5225,994.98407.34M2.13%
2020/7/1326,085.8026,225.0726,639.0926,044.23428.57M0.04%
2020/7/1026,075.3025,690.3526,101.3225,637.50337.36M1.44%
2020/7/925,706.0926,094.9226,103.2825,523.51389.18M-1.39%
2020/7/826,067.2825,950.0626,109.4925,816.25337.30M0.68%
2020/7/725,890.1826,172.0126,174.9325,866.58349.00M-1.51%
2020/7/626,287.0325,996.0826,297.5325,996.08342.26M1.78%
2020/7/225,827.3625,936.4526,204.4125,778.12350.29M0.36%
2020/7/125,734.9725,879.3826,019.3125,713.61373.98M-0.30%
2020/6/3025,812.8825,512.4325,905.3825,475.14412.69M0.85%
2020/6/2925,595.8025,152.4525,601.1525,096.16385.13M2.32%
2020/6/2625,015.5525,641.6925,641.6924,971.03676.18M-2.84%


Thanks for your help,
Vladi

1 REPLY 1
Greg_Deckler
Community Champion
Community Champion

@PbiCeo - Well, you could create a calculated column and use EARLIER. See my article on Mean Time Between Failure (MTBF) which uses EARLIER: http://community.powerbi.com/t5/Community-Blog/Mean-Time-Between-Failure-MTBF-and-Power-BI/ba-p/3395...



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.