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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.