Forum Discussion
Distribute a table between %
- 3 years ago
Are you expecting something like this:
It hides some complexity, we would need to create a segment table like below:
Based on the Segment table and the orginal Data table, we could get your expected table with a calculated table with the code below:
SegmentCount =VAR _table =ADDCOLUMNS(SUMMARIZE (Data, Data[UniqueID]),"PctCount",VAR CompleteCount =CALCULATE (COUNTROWS(FILTER(Data, Data[Status] = "Completed")))VAR TotalCount =CALCULATE (COUNTROWS(Data),ALLEXCEPT(Data, Data[UniqueID]))RETURNDIVIDE (CompleteCount, TotalCount, 0 ))RETURNADDCOLUMNS(Segment,"Count of Unique Employees",COUNTROWS(FILTER (_table,AND ([PctCount]>=Segment[Min], [PctCount]<Segment[Max])))) - Anonymous3 years ago
Hi drakwen ,
Looking forward to your next reply. If you validate that the method provided by FreemanZ and amitchandak can help you get the solution later, could you please mark it as Answered? It will help the others in the community find the solution easily if they face the same problem as yours. Thank you.
Best Regards
Hi drakwen ,
Looking forward to your next reply. If you validate that the method provided by FreemanZ and amitchandak can help you get the solution later, could you please mark it as Answered? It will help the others in the community find the solution easily if they face the same problem as yours. Thank you.
Best Regards
I confirm it now works!! It was my data that was failing