Showing results for 
Search instead for 
Did you mean: 
Helper I
Helper I

Matrix full of measures - when formatting blank rows show up!

Hi everyone,

I have generated a matrix full of measures a bit like this 



and the result is brilliant, showing something like this:


However, i'm trying to format the values (e.g. Area to 1 decimal place, Tonnes rounded to nearest number etc)

 and so i attempted a format function:


and suddenly all these blank rows show up with no data (but is all the available dates in my date table which is one of the columns)


Does anyone know (1) is there another way to format my numbers in the matrix full of measures and / or why the table suddenly show so many empty rows?


Frequent Visitor

I ran into the same issue, using the LEN function to return blanks in case of zero characters worked for me:


VAR Result = .... (your measure that includes formatting)



IF(LEN(Result)=0, BLANK(), Result)
Super User
Super User

@ssze , Difficult to tell without looking at data.


The formatting it changing it into text. That might have cause this issue. There was the solution proposed by Guyinacube using external tools. See if that can help


measure slicer

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin
Want To Learn Power BI
Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!
!! Subscribe to my youtube Channel !!

thanks @amitchandak , i had a look at the youtube and it looks good (although i'm still struggling to wrap my head around it a bit, as the values are not showing as i want).

i tidied up my example and hope this works for a download:


the top table has all the data i want,



but i want to format it to the table below (i have compiled all the measures into a matrix)so i can have 2 layer headers



however, i want to be able to format the columns differently 

e.g. area to 1 decimal place, 

volume tonnes to nearest digit, but t/ha to 1 decimal place, sales to $ etc etc.


Would really appreciate any feed back. Been going through google searches for ages now and can't come up with much more!





i formatted already the first 6 columns, I let you do the rest 😉 



Measure =
MAX(MYOB_Group[Measure Name])="Area", IF(sum(HarvestSummary[Area (ha)]) <> BLANK(), FORMAT(sum(HarvestSummary[Area (ha)]), "0.0"), BLANK() ),
MAX(MYOB_Group[Measure Name])="Volume",IF(sum(FLITS[Nett]) <> BLANK(), FORMAT(sum(FLITS[Nett]), "0"), BLANK() ),
MAX(MYOB_Group[Measure Name]) = "Volume (t/ha)", IF([Vol_tperha] <> BLANK(), FORMAT([Vol_tperha], "0"), BLANK()),
MAX(MYOB_Group[Measure Name]) = "Log Sales", IF([Calc_LogSales] <> BLANK(), FORMAT([Calc_LogSales] * -1, "($ 0)"), BLANK()),
MAX(MYOB_Group[Measure Name]) = "Log Sales ($/t)", IF([Calc_LogSales_per_ton] <> BLANK(), FORMAT([Calc_LogSales_per_ton] *-1, "($ 0.00)"), BLANK()),
MAX(MYOB_Group[Measure Name]) = "Logging", IF([Calc_Logging] <> BLANK(), FORMAT([Calc_Logging], "$ 0"), BLANK()),
MAX(MYOB_Group[Measure Name]) = "Logging ($/t)", [Calc_Logging_per_ton],
MAX(MYOB_Group[Measure Name]) = "Cartage", [Calc_Cartage],
MAX(MYOB_Group[Measure Name]) = "Cartage ($/t)", [Calc_Cartage_per_ton],
MAX(MYOB_Group[Measure Name]) = "Management ($)", [Calc_Mgt_Total],
MAX(MYOB_Group[Measure Name]) = "Management ($/t)", [Calc_Mgt_per_ton],
MAX(MYOB_Group[Measure Name]) = "Gross Stumpage", [GrossStumpage],
MAX(MYOB_Group[Measure Name]) = "Gross Stumpage ($/t)", [GrossStumpage_per_ton],
MAX(MYOB_Group[Measure Name]) = "Gross Stumpage ($/ha)", [GrossStumpage_per_ha],
MAX(MYOB_Group[Measure Name]) = "Roads & Landings", [Calc_Roads_Total],
MAX(MYOB_Group[Measure Name]) = "R&L ($/t)", [Calc_Roads_per_ton],
MAX(MYOB_Group[Measure Name]) = "R&L ($/ha)", [Calc_Roads_per_hac],
MAX(MYOB_Group[Measure Name]) = "Other", [Calc_Other],
MAX(MYOB_Group[Measure Name]) = "Other ($/t)", [Calc_Other_per_ton],
MAX(MYOB_Group[Measure Name]) = "Net From Harvest", [Calc_Net],
MAX(MYOB_Group[Measure Name]) = "Net From Harvest ($/t)", [Calc_Net_per_ton],
MAX(MYOB_Group[Measure Name]) = "Net From Harvest ($/ha)", [Calc_Net_per_ha],
If this solves your problem, please mark it as the solution so others can find it.

Helpful resources

May 23 2022 epsiode 5 without aka link.jpg

The Power BI Community Show

Welcome to the Power BI Community Show! Jeroen ter Heerdt talks about the importance of Data Modeling.

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through June10th!

Power BI Dev Camp Session 22 without aka link and time 768x460.jpg

Check it Out!

Watch Session 22 Ted's Dev Camp along with past sessions!

Power BI Release May 2022 768x460.png

Check it out!

Click here to read more about the May 2022 updates!