Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
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! | |
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
84 | |
78 | |
41 | |
40 | |
35 |