Forum Discussion
Issue with Totals
| Row Labels | Average of KM | Count of Stops |
| 4583383 | 350.83612 | 11 |
| 4623383 | 408.77236 | 9 |
| 4633383 | 347.61744 | 10 |
| 4643383 | 214.04222 | 13 |
| Grand Total | 320.8574842 | 43 |
| sum 4 avg kms | 1321.26814 | |
| sum divided by count | 30.72716605 |
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] ) )
9 Replies
- Ashish_MathurSuper User
Hi,
Do these measures 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]))
Hope this helps.
- AnonymousNot applicable
Sorry Ashish, this is giving me error
- Ashish_MathurSuper User
Hi,
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.
- v-frfei-msftCommunity Support
Hi Anonymous ,
You can copy and past your sample data here directly. Could you plz share your sample data and excepted result to me if you don't have any Confidential Information. Please upload your files to One Drive for Business and share the link here.