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
MSuser5
Helper II
Helper II

based on continuous values result

Hi All,

 

I have daily customer data in that if value continuously 7 then consider as 1 please find below example kindly help me.

 

DateCustomer IDValue
01/10/2023111007
02/10/2023111007
03/10/2023111007
04/10/2023111007
05/10/2023111007
08/10/2023111007
09/10/2023111000
10/10/2023111000
11/10/2023111000
12/10/2023111000
15/10/2023111000
16/10/2023111000
17/10/2023111000
18/10/2023111000
19/10/2023111007
23/10/2023111007
24/10/2023111007
25/10/2023111007
26/10/2023111007
29/10/2023111000
30/10/2023111000
31/10/2023111000
   
01/10/20231110027
02/10/20231110027
17/10/20231110027
18/10/20231110027
19/10/20231110020
23/10/20231110020
24/10/20231110027
25/10/20231110020

 

now expected result like both customer values should be : (lets say first customer have continuous 7 values 2 times so result is 2 , and second customer have only one time continuous 7 value hence result will be 1.)

Customer IDResult
111002
1110021
5 REPLIES 5
Ahmedx
Super User
Super User

pls try this

Screenshot_5.png

Hi @Ahmedx ,

 

Thanks for your effort.

I have created column same DAX but shoing error where as "OFFSET, ORDERBY, PARTITIONBY" not valid function.

FYI
Capture111.PNG 

pls try again

 

Ahmedx
Super User
Super User

the minimum not interruption is what should it be: 4 or 3 or 2?

Screenshot_3.png

Hi @Ahmedx ,

 

daily datewise If continuous value 7 then need to consider result as 1 please refer below result.

 

33.PNG

Helpful resources

Announcements
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.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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