Forum Discussion
Add a measure in Visual Table to add column
I have 2 tables as below :
where I have calculated Avg =
But, I also need another column which would give me Difference of Consumption and Average:
I only need the Red values, green values can or cannot be included based on requirement.
I tried doing this using the below formula, but it takes the Sum of all the Average values in the column average and compares it with the Consumption details instead of comparing it with individual ID average
hi, TejasShah
avg measure
avg = CALCULATE( AVERAGEX( consumption,consumption[consumption]), ALLEXCEPT(consumption,consumption[meter name]) )diff measure
diff = MIN(consumption[consumption])-[avg]
10 Replies
- Vallirajap
Resolver III
Hi TejasShah
I tried the above use case based on my understanding; below, I share the screen shot. Is there any query you mentioned to ask?Did I answer your question?
Mark my post as a solution, this will help others...!
Hit the kudo also,
Thank you
- TejasShah
Helper I
Hi Vallirajap ,
You are using the same table for calculating the difference, actually this table which I have is a Visual table on my BI report and not a data table. I suppose we won't be able to use Visual table columns in measure to achieve our difference column