March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe 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
Hi,
i want to calculate the 3 months reiteration or consecutive presence of row in a table. The table is like this.
Name | data | Month |
ABDOU LATIF | 0 | déc-21 |
ALEXIS | 1 | déc-21 |
ALEXIS | 6 | janv-22 |
Assetou | 2 | juil-22 |
ANAIS | 3 | nov-21 |
ANAIS | 4 | févr-22 |
Benoit | 6 | févr-22 |
Benoit | 7 | juil-22 |
ANAIS | 0 | juil-22 |
BASTIEN | 7 | janv-22 |
BENOIT | 2 | janv-22 |
BENOIT | 4 | févr-22 |
BEATRICE | 7 | juin-22 |
BEATRICE | 4 | juil-22 |
BOUSLINE | 4 | août-22 |
BOUSLINE | 7 | sept-22 |
BOUSLINE | 7 | juil-22 |
BARBARA | 1 | déc-21 |
BARBARA | 1 | févr-22 |
BARBARA | 1 | juil-22 |
Agathe | 0 | déc-21 |
Agathe | 1 | janv-22 |
Agathe | 2 | févr-22 |
Agathe | 0 | avr-22 |
Beatrice | 5 | juil-22 |
Armandine | 2 | déc-21 |
Armandine | 4 | août-22 |
ANTHONY | 2 | mai-22 |
ANTHONY | 5 | juin-22 |
Alain | 1 | janv-22 |
Claude | 0 | avr-22 |
The result i want :
Name | 3 months consecutive |
ABDOU LATIF | 0 |
ALEXIS | 1 |
Assetou | 0 |
ANAIS | 0 |
Benoit | 0 |
ANAIS | 0 |
BASTIEN | 0 |
BENOIT | 1 |
BEATRICE | 1 |
BOUSLINE | 1 |
BARBARA | 0 |
Agathe | 1 |
Agathe | 0 |
Beatrice | 0 |
Armandine | 0 |
ANTHONY | 1 |
Alain | 1 |
Claude | 0 |
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
Solved! Go to Solution.
Power Quey is essentially for data shaping/cleansing rather than analytic calculation.
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! |
Power Quey is essentially for data shaping/cleansing rather than analytic calculation.
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! |
@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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
115 | |
76 | |
57 | |
52 | |
44 |
User | Count |
---|---|
164 | |
116 | |
63 | |
57 | |
50 |