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
Dear,
I have a table "TRUNCATED 2024" and I want to shorten the table as soon as the 1st empty cell begins
Thanks in advance for your support
Solved! Go to Solution.
Hi @Yazid ,
1. Based on your description, I created some data and wrote a calculated column.
Column =
VAR _current_year = YEAR(TODAY())
RETURN
SWITCH(TRUE(),
'Table'[date].[Year] = _current_year,'Table'[date],
BLANK())
2. Create the calculation table.
table2 = FILTER(
'Table',
NOT(ISBLANK('Table'[Column]))
)
If your Current Period does not refer to this, please clarify in a follow-up reply.
Best Regards,
Clara Gong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Yazid ,
1. Based on your description, I created some data and wrote a calculated column.
Column =
VAR _current_year = YEAR(TODAY())
RETURN
SWITCH(TRUE(),
'Table'[date].[Year] = _current_year,'Table'[date],
BLANK())
2. Create the calculation table.
table2 = FILTER(
'Table',
NOT(ISBLANK('Table'[Column]))
)
If your Current Period does not refer to this, please clarify in a follow-up reply.
Best Regards,
Clara Gong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks a lot !
You can filter out 0s. But the table will still contain these. Best way to do this is in the Transform data steps. Your DAX won't work here, and you will need to use Power Query M Language
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!