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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
mihaistanca7
Frequent Visitor

Verification of values trend between to specific values types

Hello guys

Can you please help me with an ideea about how can i put in DAX this?

I have  table with 4 columns, Products, Date,Type and Price.

I must search all prices values with type QTR between each 2 values with type ACT and where the trend is descending to return the date of that value.Basically incrementaly must check starting from the first ACT value, that all QTR values are smaller than the next value QTR value but always between last 2 ACT values.

In below table for product A2 at 31.08.2023 the value is grater than the one from 30.09.2023 so i must return date 31.08.2023, the date where the value is grater.

 

ProductsDateType Price
A112/31/23QTR250
A111/30/23ACT230
A110/31/23QTR200
A109/30/23QTR340
A110/31/23QTR190
A110/15/23ACT170
A109/30/23QTR160
A108/31/23QTR120
A112/07/23QTR90
A106/30/23ACT70
A105/31/23QTR60
A212/31/23QTR7000
A211/30/23ACT6500
A210/31/23QTR6300
A209/30/23QTR6200
A210/31/23QTR6000
A210/15/23ACT5600
A209/30/23QTR5500
A208/31/23QTR5700
A212/07/23QTR4500
A206/30/23ACT4000
A205/31/23QTR3000
1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

might be easier to us a graphical solution

 

lbendlin_0-1715308584680.png

 

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

might be easier to us a graphical solution

 

lbendlin_0-1715308584680.png

 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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