Forum Discussion
100% Staked Column Chart is not working
- 6 years ago
Hi Poongovil ,
I created a measure and used level as a legend.
Measure = VAR COUNT_BY_LEVEL = CALCULATE ( COUNT ( 'Table'[ID] ), ALLEXCEPT ( 'Table', 'Table'[ID type], 'Table'[level] ) ) VAR COUNT_BY_TYPE = CALCULATE ( COUNT ( 'Table'[ID] ), ALLEXCEPT ( 'Table', 'Table'[ID type] ) ) RETURN DIVIDE ( COUNT_BY_LEVEL, COUNT_BY_TYPE )If the problem persists,could you share the sample pbix or sample data?(Please mask any sensitive data before uploading.)
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Poongovil , please swap legend and axis column and check
- Poongovil6 years agoFrequent Visitor
Sorry it does not work.... Tried swapping the legend and axis column
- V-lianl-msft6 years ago
Community Support
Hi Poongovil ,
I created a measure and used level as a legend.
Measure = VAR COUNT_BY_LEVEL = CALCULATE ( COUNT ( 'Table'[ID] ), ALLEXCEPT ( 'Table', 'Table'[ID type], 'Table'[level] ) ) VAR COUNT_BY_TYPE = CALCULATE ( COUNT ( 'Table'[ID] ), ALLEXCEPT ( 'Table', 'Table'[ID type] ) ) RETURN DIVIDE ( COUNT_BY_LEVEL, COUNT_BY_TYPE )If the problem persists,could you share the sample pbix or sample data?(Please mask any sensitive data before uploading.)
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.- Poongovil6 years agoFrequent Visitor
Thank you. That works!!!