Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

View all the Fabric Data Days sessions on demand. View schedule

Reply
vpawan
Regular Visitor

How to exclude no data columns in Pivot table

Hi Team,

 

Can you please help me on below issue. I have created a pivot table with month column using sum of amount credit as metric.

with this metric i am not getting blank month columns like april to December.

 

But when i have included format function in the metric i am getting blank columns as well. Please help me to exclude blank column by using format function in the metric.

vpawan_0-1715599944507.png

Thanks in advance

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @vpawan ,

 

Since you are doing a format you are transforming the measure into a text field. Why don't you just create a measure with the sum and then format it with the syntax you have on the formatting pane:

MFelix_0-1715607512323.png

MFelix_1-1715607657524.png

 

On the highligthed area you can write the format that you are using on the measure instead of using the FORMAT syntax:

 

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

2 REPLIES 2
MFelix
Super User
Super User

Hi @vpawan ,

 

Since you are doing a format you are transforming the measure into a text field. Why don't you just create a measure with the sum and then format it with the syntax you have on the formatting pane:

MFelix_0-1715607512323.png

MFelix_1-1715607657524.png

 

On the highligthed area you can write the format that you are using on the measure instead of using the FORMAT syntax:

 

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



HotChilli
Super User
Super User

Remove the FORMAT - that turns the measure into a string.

There is a Formatting section for measures in Model View (just select the measure in Data section and scroll down the Properties list - there is a custom option available)

The measure will remain numeric but you can define the display format.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors