Forum Discussion
Need Correct Total
- 5 years ago
Anonymous Thanks for the suggestion i got the fix, this time not using the variable anywhere in the expression.
This i have added in the else part of hasonevalue.
SUMX(
FILTER(
VALUES('Table'[id]),divide(Month of engagement, Months in Contract L30)>=0.75 && divide(Month of engagement, Months in Contract L30)<=1.00),1))
AbhishekPandey , You have to try like
Assuming your current measure is Measure
New measure = sumx(values(Table[unique ID]),[Measure])
amitchandak If you see the description again, i have tried this but not getting the correct result.
- amitchandak5 years ago
Super User
AbhishekPandey ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
- AbhishekPandey5 years ago
Helper I
There is a difference of environment, when i tried implementing the solutuion on a blank PBI with some dummy data it worked fine for me, but showing a blank value when i replicate the same on a live AAS environment.
Measure = VAR Check = DIVIDE ( SUM ( 'Tab'[Month of Engagement] ), SUM ( Tab[Months In Contract L30] ) ) RETURN IF ( HASONEVALUE ( 'Tab'[ID] ), IF ( Check >= 0.75 && Check <= 1.00, Check, 0 ), CALCULATE ( SUMX ( CALCULATETABLE ( tab, FILTER ( ALL ( tab ), VAR __Check = DIVIDE ( 'Tab'[Month of Engagement], Tab[Months In Contract L30] ) RETURN __Check < 1 && __Check > 0.75 ) ), 1 ) ) )- AbhishekPandey5 years ago
Helper I
Can anyone help in this.