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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
krimionn23
New Member

how to calculate reiteration or consecutive presence of data

Hi,

 

i  want to calculate the 3 months reiteration or consecutive presence of row in a table. The table is like this.

NamedataMonth
ABDOU LATIF0déc-21
ALEXIS1déc-21
ALEXIS6janv-22
Assetou2juil-22
ANAIS3nov-21
ANAIS4févr-22
Benoit6févr-22
Benoit7juil-22
ANAIS0juil-22
BASTIEN7janv-22
BENOIT2janv-22
BENOIT4févr-22
BEATRICE7juin-22
BEATRICE4juil-22
BOUSLINE4août-22
BOUSLINE7sept-22
BOUSLINE7juil-22
BARBARA1déc-21
BARBARA1févr-22
BARBARA1juil-22
Agathe0déc-21
Agathe1janv-22
Agathe2févr-22
Agathe0avr-22
Beatrice5juil-22
Armandine2déc-21
Armandine4août-22
ANTHONY2mai-22
ANTHONY5juin-22
Alain1janv-22
Claude0avr-22

 

The result i want :

Name3 months consecutive
ABDOU LATIF0
ALEXIS1
Assetou0
ANAIS0
Benoit0
ANAIS0
BASTIEN0
BENOIT1
BEATRICE1
BOUSLINE1
BARBARA0
Agathe1
Agathe0
Beatrice0
Armandine0
ANTHONY1
Alain1
Claude0

 

i don't jnow if it s better to do this with a PBI measure or with power query.

 

Thx in advance for your answers

1 ACCEPTED SOLUTION
CNENFRNL
Community Champion
Community Champion

Power Quey is essentially for data shaping/cleansing rather than analytic calculation.

CNENFRNL_0-1669509512798.png


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

View solution in original post

2 REPLIES 2
CNENFRNL
Community Champion
Community Champion

Power Quey is essentially for data shaping/cleansing rather than analytic calculation.

CNENFRNL_0-1669509512798.png


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

amitchandak
Super User
Super User

@krimionn23 , I have video on similar topic, see if that can help

Power BI- Customer Purchasing in each of the last 3 months: https://youtu.be/bGtjoccEA38

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.