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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
delish68
Frequent Visitor

DIVIDE Measure Creating Blank Rows

I have a calculation item that returns "change" or "growth" by subtracting prior year from current year and then dividing that by prior year. Pretty standard calculation. The problem is that when I add this to my matrix, it returns a bunch of empty rows.

 

 

FORMAT (DIVIDE (CALCULATE ( SELECTEDMEASURE (), 'Time Intelligence'[Time Calc] = "YTD" ) - CALCULATE ( SELECTEDMEASURE (), 'Time Intelligence'[Time Calc] = "PYTD" ),
CALCULATE ( SELECTEDMEASURE (), 'Time Intelligence'[Time Calc] = "PYTD" )), "Percent")

 

 

 

This is what it looks like without the calculation item:

delish68_1-1718287566214.png

 

And this is what it looks like when I add the growth calculation item:

delish68_2-1718287622287.png

 

It looks like it has to do with the FORMAT function. If so, is there a way to format this as a percent without the function returning a bunch of blanks and expanding this matrix unnecessarily?

5 REPLIES 5
delish68
Frequent Visitor

This seemed to resolve my issue but not sure if it's the most elegant approach.

delish68_1-1718289906817.png

 

Anonymous
Not applicable

Hi,@delish68 .

If you have found suitable solutions, please share them as it will help more users with similar problems.
Or you can mark the valid suggestions provided by other users as solutions

 

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.

Best Regards,

Carson Jian,

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi,@delish68 Hello,@aduguid ,thanks for your concern about this issue.
Very glad to see that you have found a suitable solution and shared it, I think the dax code you have given is easy to understand and is a good solution.
Thank you for sharing it as it will help more users on the forum who have similar problems.
You can mark your own suggestions as solutions.

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.

Best Regards,

Carson Jian



aduguid
Memorable Member
Memorable Member

Have you tried using the ribbon to format the measure as a percent?

I don't believe that can be done with Calculation Groups/Items.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.