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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
I have a table which uses a max month to show the current month values and prior month values.
It is supposed to present the number of journal entries posted by a user.
The top level is the cost cente name, and the drill down are the users.
The formula I have for the current month is:
The issue is that the table presents the max month per user. So say the max month for whole data is 'October'. And User A only posted until 'September'. For User A, the table will show the September figure in the 'Current month' column and August in the 'previous month' column which is causing the inconsistency.
Appreciate anyone who can help me with this. Thanks a lot!!
See screenshot below:
Solved! Go to Solution.
Hi @Anonymous ,
First you need to get the value of the year and month of the date:
year = YEAR(Sheet1[date])
month = MONTH(Sheet1[date])
Then get the maximum month for each user's data:
Determine if it is current month or prior month:
Create measure to compute the sum:
You can also refer to the pbix.
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
First you need to get the value of the year and month of the date:
year = YEAR(Sheet1[date])
month = MONTH(Sheet1[date])
Then get the maximum month for each user's data:
Determine if it is current month or prior month:
Create measure to compute the sum:
You can also refer to the pbix.
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 133 | |
| 88 | |
| 85 | |
| 68 | |
| 64 |