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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.