Forum Discussion
lenawr
1 year agoNew Member
filtered calculation changes the values
Hi, I have created calcualtion that is supossed to calclate % of bench and alloctaed countrywise. Now when I want to see only % of bench it calculates it as 100%. How to see filtered out bench as i...
- 1 year ago
Hi lenawr ,
Here is your solution.
The Dax Measure is as below.
Per = var current_val = sum('Table'[GGID]) Var total_Val = calculate(sum('Table'[GGID]),ALLEXCEPT('Table','Table'[Country])) return DIVIDE(current_val,total_Val,0)If this works, Accept as solution, Else let me know whats going wrong.
FBergamaschi
1 year agoSuper User
Calculation = divide(sum([Count of Unique GGID]),CALCULATE(SUM([Count of Unique GGID]),ALL([Category_1]), ALL([Country]))
If this helped, please consider giving kudos and mark as a solution
me in replies or I'll lose your thread
Want to check your DAX skills? Answer my biweekly DAX challenges on the kubisco Linkedin page
Consider voting this Power BI idea
Francesco Bergamaschi
MBA, M.Eng, M.Econ, Professor of BI