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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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