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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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