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
Hello,
Is their a Dax Formula which can make my 2019-2020 Column Exclude Accounting periods that are not yet available in current year 2020-2021 so that the same periods are being compared in the totals? I know I can right click on periods 8 through 12 and simply exclude them but I'd like a Dax that can do this automatically.
Thank you!
Solved! Go to Solution.
@Anonymous
Create the following measure and apply.
There a video from sqlbi.com that solves the same problem in a different way:
https://www.youtube.com/watch?v=bAOs5LTP0I0
________________________
If my answer was helpful, please click Accept it as the solution to help other members find it useful
Click on the Thumbs-Up icon if you like this reply 🙂
________________________
If my answer was helpful, please click Accept it as the solution to help other members find it useful
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Hi,
If the row and column headers of your visual have been dragged from the Calendar Table and the Calendar Table has dates only till the last day available on the source tble, then try this measure
=if(isblank(calculate([measure],nextyear(calendar[date]))),blank(),[measure])
Does this help?
I like this approach as well but my current year data disappears and only my previous year show up. Yes both my accounting period and Fiscal Year come from the Calendar, and my Calander end date is built from the last data load. I should have posted my Visualazations and fields. In your formula what should go in my first [measure] and what should go in my next [measure]?
Hi,
[Total amount] as shown in Fowmy's image.
@Anonymous
Create the following measure and apply.
There a video from sqlbi.com that solves the same problem in a different way:
https://www.youtube.com/watch?v=bAOs5LTP0I0
________________________
If my answer was helpful, please click Accept it as the solution to help other members find it useful
Click on the Thumbs-Up icon if you like this reply 🙂
________________________
If my answer was helpful, please click Accept it as the solution to help other members find it useful
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 46 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |