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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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 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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Top Kudoed Authors