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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
jnguyen21
Helper I
Helper I

Calculation only shows up on total, but not individual lines

Help! I am dividing the dollars by the qty, however the expense lines come up blank. Any idea what I am missing?

 

Test Qty = [Qty Actual] + [Qty Rest of the year]

- this is calculated with 6 months of actual and 6 months of forecast

Test Dollars = "Total Dollars"

Test Qty / Dollars = DIVIDE([Test - Dollars],[Test Qty])

 

jnguyen21_0-1633711401068.png

 

4 REPLIES 4
v-janeyg-msft
Community Support
Community Support

Hi, @jnguyen21 

 

According to the display in your table, the measure you wrote will not be calculated according to your logic.

vjaneygmsft_1-1634028235750.png

If you want to get the correct result, please share how your [Test Qty] and [Test Dollars] are calculated? Then we can try to help you modify the code.

 

Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please upload some insensitive data samples and expected output.


Best Regards,

Community Support Team _ Janey

 

 

jnguyen21
Helper I
Helper I

I would like divide each line so i thought it would be 

648,899 / 12,935,936 = .05

1,568,319 / 12,935,936 = .12
but is only dividing the total line 

How are your [Qty Actual] and [Qty Rest of the year] defined?

AlexisOlson
Super User
Super User

You're dividing by zero so DIVIDE returns a blank for these rows. You can add a third argument to divide to return something other than a blank when dividing by zero. E.g. 

Test Qty / Dollars = DIVIDE ( [Test - Dollars], [Test Qty], 0 )

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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