Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hi,
How do I iterate through my table and take each value in that file and compare it to the average of the whole table?
SUMX? Are there other iterative calculation ways?
I just want to have a calculated column with the cell / average for the table * 100....
Solved! Go to Solution.
Hi @Anonymous ,
We can create a new calculate column to meet your requirement.
Column =
var cell_ = CALCULATE(SUM('Table'[value]))
var whole_average = AVERAGE('Table'[value])
return
DIVIDE(cell_,whole_average)
If it doesn’t meet your requirement, could you please provide a mockup sample based on fake data or describe the fields of each tables and the relations between tables simply?
Please upload your files to OneDrive For Business and share the link here. Please don't contain any Confidential Information or Real data in your reply.
BTW, pbix as attached.
Best regards,
Community Support Team _ zhenbw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Could I do something like SUM(column)/countA or countAX? to get the sum average for the table?
Hi @Anonymous ,
How about the result after you follow the suggestions mentioned in my original post?
Could you please provide more details or expected result about it If it doesn't meet your requirement?
Best regards,
Community Support Team _ zhenbw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
We can create a new calculate column to meet your requirement.
Column =
var cell_ = CALCULATE(SUM('Table'[value]))
var whole_average = AVERAGE('Table'[value])
return
DIVIDE(cell_,whole_average)
If it doesn’t meet your requirement, could you please provide a mockup sample based on fake data or describe the fields of each tables and the relations between tables simply?
Please upload your files to OneDrive For Business and share the link here. Please don't contain any Confidential Information or Real data in your reply.
BTW, pbix as attached.
Best regards,
Community Support Team _ zhenbw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Giraffesrock,
So, to calculate cellvalue/average , can you see if this works?
Basically I created a new calculated column.
Thanks,
Sunil.
Hi,
This doesn't work. It says a circular dependency is created.... 😞
Hi @Anonymous
try a column
Column =
DIVIDE(
Table[Value],
CALCULATE(AVERAGE(Table[Value]), ALL(Table))
)
The expresson referes to multiple columns. multiple columns cannot be converted to a sclar value...
Thanks! Why am I struggling with DAX so much? I kind of get M and feel more comfortable with it... its more familiar.
What do I need to keep in mind when trying to write DAX?
I need to read some books I think
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
65 |
User | Count |
---|---|
136 | |
117 | |
101 | |
71 | |
61 |