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

Shape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.

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

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.