Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi everyone!
I have the following DAX statement to calculate AVG count for one level below (Thanks to Lydia! @v-yuezhe-msft):
average = CALCULATE(COUNTA(Table[Item]),ALLEXCEPT(Table,Table[Product],Table[Item]))/CALCULATE(DISTINCTCOUNT(Table[Children]),ALLEXCEPT(Table,Table[Product]))
But problem is I have 9 levels in hierarchy. Any ideas how to extend this DAX statement??
Many many thanks!!
Solved! Go to Solution.
Well, I can tell you that you can't do recursion in DAX, DAX hates it.
Can you refer back to the original problem perhaps? Need the data in a copy and paste format to recreate and need to better understand what you want to do. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
Well, I can tell you that you can't do recursion in DAX, DAX hates it.
Can you refer back to the original problem perhaps? Need the data in a copy and paste format to recreate and need to better understand what you want to do. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
110 | |
91 | |
84 | |
66 |