Forum Discussion
sportive92003
Helper II
2 years agoSwitch category
Hello, I have one client X who is in the sector "20%...". I have to eliminate this category and put 33% of the amount in sector "01-..."; 33% in sector "02-..." and 33% in sector "07-...". On the gr...
Anonymous
2 years agoNot applicable
Hi sportive92003 ,
BeaBF , thanks for your concern about this case.
Based on your description, I added a client column:
Here's the original pie chart:
Please follow these steps:
1.Create a measure and filter the sector:
Measure = IF(SELECTEDVALUE('Table'[sector])="20% MARINE, 20% HYDRO",1,0 )
2.Create a calculated column:
Column =
var A=CALCULATE(SUM('Table'[amount]),FILTER('Table','Table'[sector]="20% MARINE, 20% HYDRO"))
RETURN
IF(LEFT('Table'[sector],2) in {"01","02"},CALCULATE(SUM('Table'[amount])+A*1/3,ALLEXCEPT('Table','Table'[sector])),CALCULATE(SUM('Table'[amount]),ALLEXCEPT('Table','Table'[sector])))/2
3.The final result is as follows:
Best Regards,
Zhu
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
sportive92003
Helper II
2 years agoHello,
See results for my client X (name is BNAC). I should see the 3 sectors but nothing appears