Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi -
I have a table visualization and I would like to a hide the column if another column (variable) equals 0)
Example:
Food Type | Amount1 | Amount2 | Amount3 |
Ice Cream | 10 | 15 | 10 |
Cake | 15 | 12 | 30 |
Cookies | 8 | 12 | 42 |
If variable Amount3Target = 0 then do NOT display column 3
Food Type | Amount1 | Amount2 |
Ice Cream | 10 | 15 |
Cake | 15 | 12 |
Cookies | 8 | 12 |
Any thoughts would be appreciated - Jerry
Solved! Go to Solution.
Hi @jerryr125 ,
Use a Matrix Instead of a Table
Please mark this post as solution if it helps you. Appreciate Kudos.
Hi @jerryr125 ,
Thank you for reaching out to Microsoft Fabric Community.
Thank you @lbendlin and @FarhanJeelani for your prompt response.
I have created the data where the Amount3 column contains both 0 and non-zero values. If Amount3 is 0, we first need to unpivot the data, then build the table using a Matrix visual. Next, apply a filter on the Value column to show only non-zero values. This ensures that the Amount3 column automatically hides when all its values are 0.
The PBIX file is attached for reference. Let us know if you have any further questions!
If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it!
Hi @jerryr125 ,
May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.
Thanks!!
Hi @jerryr125 ,
Thank you for reaching out to Microsoft Fabric Community.
Thank you @lbendlin and @FarhanJeelani for your prompt response.
I have created the data where the Amount3 column contains both 0 and non-zero values. If Amount3 is 0, we first need to unpivot the data, then build the table using a Matrix visual. Next, apply a filter on the Value column to show only non-zero values. This ensures that the Amount3 column automatically hides when all its values are 0.
The PBIX file is attached for reference. Let us know if you have any further questions!
If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it!
Unpivot your data to bring it into usable format. Then apply the row filter accordingly. Let the matrix visual do the re-pivoting.
Hi @jerryr125 ,
Use a Matrix Instead of a Table
Please mark this post as solution if it helps you. Appreciate Kudos.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
33 | |
21 | |
20 | |
14 | |
12 |
User | Count |
---|---|
28 | |
18 | |
16 | |
16 | |
14 |