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! Request now

Reply
Anonymous
Not applicable

DAX Calculation Divide two Fact tables is giving wrong output

hi,

have this measure: (show translation version):

VAR _CALC = DIVIDE
('Fact_Sales'[Gross Invoiced Sales EUR TY],'Fact_Sales budget'[Budget gross invoiced sales EUR YTD])

RETURN
/*IF( NOT(ISBLANK( _CALC ) ), _CALC, 0) */
_CALC

but if you look at this output than it is wrong:

emveha_0-1683911213978.png

the first column with the percentage should be 90.1%.

anyone ideas how this can be solved

thnx

1 ACCEPTED SOLUTION
Anonymous
Not applicable

it is a measure as you can see:

Budget gross invoiced sales EUR YTD=

VAR _MONTH = MONTH(TODAY())
RETURN CALCULATE([Budget monthly gross invoiced EUR], [Dim_InvoiceDate][Month nr]<=_MONTH)

View solution in original post

7 REPLIES 7
Anonymous
Not applicable

Hi Tamerj1

it is already in, see the 5th column Budget Total gross invoiced YTD

@Anonymous 

Are you sure you have created a measure not a column? All of them are measures?

tamerj1
Super User
Super User

Hi @Anonymous 

What do you get when you place [Budget gross invoiced sales EUR YTD] in the same table visual?

Anonymous
Not applicable

it is a measure as you can see:

Budget gross invoiced sales EUR YTD=

VAR _MONTH = MONTH(TODAY())
RETURN CALCULATE([Budget monthly gross invoiced EUR], [Dim_InvoiceDate][Month nr]<=_MONTH)

@Anonymous 

The 5th column in the table visual is [Budget monthly gross invoiced EUR] not [Budget gross invoiced sales EUR YTD]

Anonymous
Not applicable

sorry, indeed the field is created like this: Budget total gross invoiced EUR =Sum([Gross Invoiced_new]) 

@Anonymous 

I mean perhaps the division is correct but your looking at the wrong measures

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.