Forum Discussion
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:
the first column with the percentage should be 90.1%.
anyone ideas how this can be solved
thnx
- Anonymous3 years ago
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)
7 Replies
- tamerj1
Community Champion
Hi Anonymous
What do you get when you place [Budget gross invoiced sales EUR YTD] in the same table visual?
- AnonymousNot 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)- tamerj1
Community Champion
Anonymous
The 5th column in the table visual is [Budget monthly gross invoiced EUR] not [Budget gross invoiced sales EUR YTD]
- AnonymousNot applicable
Hi Tamerj1
it is already in, see the 5th column Budget Total gross invoiced YTD
- tamerj1
Community Champion
Anonymous
Are you sure you have created a measure not a column? All of them are measures?