Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi All,
i've the following table named TURNOVER:
| DATE | ID |
| 01/05/2024 | AAA |
| 01/05/2024 | BBB |
| 01/05/2024 | CCC |
| 01/05/2024 | DDD |
| 01/06/2024 | AAA |
| 01/06/2024 | BBB |
| 01/06/2024 | CCC |
| 01/07/2024 | AAA |
| 01/07/2024 | BBB |
| 01/07/2024 | DDD |
| 01/07/2024 | EEE |
| 01/08/2024 | BBB |
| 01/08/2024 | DDD |
| 01/08/2024 | FFF |
| 01/08/2024 | HHH |
| 01/08/2024 | LLL |
Date is when the record is insert (1th of each month); ID is the key ID of the table.
I've to create a DAX that calculate for each month the positive (new record) and the negative difference (missing record) compared with the previous month.
For Example, on the 01/07/2024 i've two new record (IN) and one missing record (OUT) compared with june.
| Date | RecordCount | IN | OUT |
| 01/05/2024 | 4 | - | - |
| 01/06/2024 | 3 | 0 | 1 |
| 01/07/2024 | 4 | 2 | 1 |
| 01/08/2024 | 5 | 3 | 2 |
Which is in your opinion the best way?
I tried with the following DAX but it doesn't work properly:
Solved! Go to Solution.
@DaniEMIT , For this first create a measure for Previous month date
Proud to be a Super User! |
|
@DaniEMIT , For this first create a measure for Previous month date
Proud to be a Super User! |
|
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 9 | |
| 9 | |
| 8 | |
| 6 | |
| 6 |
| User | Count |
|---|---|
| 24 | |
| 20 | |
| 20 | |
| 14 | |
| 14 |