Forum Discussion
bjackson2760
Helper I
9 months agoVariance column for Dynamically selected columns
Greetings, I have a matix that consist of dynamic columns. The data consist of reports that are Jan-Dec. Each month has it's own Jan thru Dec totals in each file, see below left side. Currently...
- 9 months ago
Thanks everyone. I found it on another thread. I found this code and used it, but it only worked once I have a sum total next to it.
var mmax = CALCULATE(max(DataProfile[Units]),allselected(Contacts[Name])) var mmin = CALCULATE(min(DataProfile[Units]),allselected(Contacts[Name])) return mmax-mmin
I will come return to give credit. Thanks.
Ashish_Mathur
Super User
9 months agoHi,
So if you have selected 3 months (as shown in the picture), then how should variance be calculated?
- bjackson27609 months ago
Helper I
I am suggesting to my client that they only compare 2 at a time or do a visual. Two is difficult enough,also it would make any sense to try to get a variance from 3 or more.
Thank you, I have posed that very question to him, I am awaiting feedback. 🙂
- bjackson27609 months ago
Helper I
Thanks Ashish. I need a variance for 2 selected months. I'll just let him know that is the limit and makes sense.