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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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 REPLY 1
lbendlin
Super User
Super User

might be easier to us a graphical solution

 

lbendlin_0-1715308584680.png

 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors