Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreThe FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register 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
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 51 | |
| 44 | |
| 39 | |
| 19 | |
| 19 |
| User | Count |
|---|---|
| 70 | |
| 69 | |
| 34 | |
| 33 | |
| 30 |