Forum Discussion
Anonymous
6 years agoNot applicable
Issue with Totals
Hi team, this is the issue I am having Here below is my query km/stop = VAR AVGKMS = AVERAGE(E3table_1[KM]) return if(hasonevalue(E3table_1[ManInd]),AVGKMS,SUMX(VALUES(E3table_1[ManInd]),...
- 6 years ago
Anonymous these will be two different measures , one Avg Kms Measure and 2nd will be Measure1
AVG Kms Measure = AVERAGE(E3table_1[KM]) Measure1 = IF ( HASONEVALUE(E3table_1[ManInd]), [AVG Kms Measure], SUMX( SUMMARIZE ( VALUES(E3table_1[ManInd]), E3table_1[ManInd], "AvgKms",[AVG Kms Measure] ), [AvgKms] ) )
Ashish_Mathur
Super User
6 years agoHi,
Does this work?
AVGKMS = AVERAGE(E3table_1[KM])
Measure1 = if(hasonevalue(E3table_1[ManInd]),[AVGKMS],SUMX(SUMMARIZE(VALUES(E3table_1[ManInd]),E3table_1[ManInd],"ABCD",[AVGKMS]),[ABCD]))
If it does not, then share the link from where i can download the PBI file and clearly show the visual where my measure is not working.
Anonymous
6 years agoNot applicable
sorry unfortunately i cannot share the file but the error comes when i type Measure1 =.
does there need to be a something after
AVGKMS = AVERAGE(E3table_1[KM]) to connect the two lines?
- Ashish_Mathur6 years ago
Super User
Hi,
Sorry but i cannot help if you cannot share any data.
- Anonymous6 years agoNot applicable
i understand, thank you
- parry2k6 years ago
Super User
Anonymous these will be two different measures , one Avg Kms Measure and 2nd will be Measure1
AVG Kms Measure = AVERAGE(E3table_1[KM]) Measure1 = IF ( HASONEVALUE(E3table_1[ManInd]), [AVG Kms Measure], SUMX( SUMMARIZE ( VALUES(E3table_1[ManInd]), E3table_1[ManInd], "AvgKms",[AVG Kms Measure] ), [AvgKms] ) )