Forum Discussion
Average of Two columns by adding the second Column First row to the First Column
- Anonymous1 year ago
Hi,
Thanks for the solution freginier and MFelix offered, and i want to offer some more information for user to refer to.
hello Anonymous , you can refer to the follwing solution.
Sample data:
Create a measure
MEASURE = VAR a = CALCULATETABLE ( DISTINCT ( 'Table'[First date min] ), FILTER ( ALLSELECTED ( 'Table' ), [End MY] IN VALUES ( 'Table'[End MY] ) ) ) VAR b = SELECTCOLUMNS ( FILTER ( ALLSELECTED ( 'Table' ), [End MY] IN VALUES ( 'Table'[End MY] ) ), "Test", [Chencking] ) RETURN AVERAGEX ( UNION ( a, b ), [First date min] )Then create a measure and put the following field to it.
Output
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous1 year ago
Anonymous Thank you soo much.. This is how i wanted the soultion.. Big kudos to you
MFelix freginier Thank you so much for your reply .. I just need the Average as below.. there is one more coulmn which indicates the month as End MY as shown below. The average needs to consider based on month. Giving you 3 examples
Jan Month
Should receive average as below
December Month
Should be
November Month
- Anonymous1 year agoNot applicable
Hi,
Thanks for the solution freginier and MFelix offered, and i want to offer some more information for user to refer to.
hello Anonymous , you can refer to the follwing solution.
Sample data:
Create a measure
MEASURE = VAR a = CALCULATETABLE ( DISTINCT ( 'Table'[First date min] ), FILTER ( ALLSELECTED ( 'Table' ), [End MY] IN VALUES ( 'Table'[End MY] ) ) ) VAR b = SELECTCOLUMNS ( FILTER ( ALLSELECTED ( 'Table' ), [End MY] IN VALUES ( 'Table'[End MY] ) ), "Test", [Chencking] ) RETURN AVERAGEX ( UNION ( a, b ), [First date min] )Then create a measure and put the following field to it.
Output
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous1 year agoNot applicable
Anonymous Thank you soo much.. This is how i wanted the soultion.. Big kudos to you