Forum Discussion
Incorrect Measure Total
- 7 years ago
Hi Anonymous,
Change you measure to something like this
Total test = VAR Actions = DIVIDE ( 'General'[Actions], 'General'[Total Hours], 0 ) RETURN IF ( HASONEFILTER ( 'General'[Person] ), Actions, SUMX ( ALLSELECTED ( 'General'[Person] ), Actions ) )Regards,
MFelix
- 7 years ago
Hi @dariadb,
To wha I could get from your sample file your issue is regarding the way you calculate your measures so the best way is to create the following measures:
Actions = IF ( HASONEFILTER ( Table[Name] ); DIVIDE ( [Actions Measure]; [Hours Measure]; 0 ); SUMX ( ALLSELECTED ( Table[Name] ); DIVIDE ( [Actions Measure]; [Hours Measure]; 0 ) ) )Total hours Worked Total = IF ( HASONEFILTER ( Table[Name] ); [Hours Measure]; SUMX ( ALLSELECTED ( Table[Name] ); [Hours Measure] ) )The Actions Measure and Hours Measure are your two base measures that you can use to make the calculations.
Regards,
MFelix
Hi Anonymous,
Change you measure to something like this
Total test =
VAR Actions =
DIVIDE ( 'General'[Actions], 'General'[Total Hours], 0 )
RETURN
IF (
HASONEFILTER ( 'General'[Person] ),
Actions,
SUMX ( ALLSELECTED ( 'General'[Person] ), Actions )
)
Regards,
MFelix
- Anonymous7 years agoNot applicable
- affan7 years agoSolution Sage
Hi Anonymous
Can you share some base data or the pbix
Regards
Affan
- Anonymous7 years agoNot applicable
Unfortunately I can't share it due to confidentiality
- MFelix7 years agoSuper User
Hi Anonymous,
I send out a response to you message, please check it.
Regards,
Mfelix
- MFelix7 years agoSuper User
Hi @dariadb,
To wha I could get from your sample file your issue is regarding the way you calculate your measures so the best way is to create the following measures:
Actions = IF ( HASONEFILTER ( Table[Name] ); DIVIDE ( [Actions Measure]; [Hours Measure]; 0 ); SUMX ( ALLSELECTED ( Table[Name] ); DIVIDE ( [Actions Measure]; [Hours Measure]; 0 ) ) )Total hours Worked Total = IF ( HASONEFILTER ( Table[Name] ); [Hours Measure]; SUMX ( ALLSELECTED ( Table[Name] ); [Hours Measure] ) )The Actions Measure and Hours Measure are your two base measures that you can use to make the calculations.
Regards,
MFelix