admin管理员组文章数量:1122846
I have a matrix in power bi that needs to calculate each event as a percentage of the opening event this is being done by the measures
OpeningEventIDs = CALCULATE(SUM(Sheet1[UserCount]), Sheet1[StepName] = "Opening Event")
%OfOpeningEvent = DIVIDE(SUM(Sheet1[UserCount]), [OpeningEventIDs])
The values need to also be dynamic to the slicer "Colour name" so to recalculate the "Opening Event" each time
I am then trying to reorder the columns so that Opening Event is first, they have been assigned a number each and i am doing this by the "Sort by column" feature, this then breaks the table, i have included two images the first has the correct values but wrong column order, the second is after sorting by column, the correct outcome should be the same values but with opening event as the first column
Correct Values, Wrong Order
Wrong Values, Correct Order
data
I have a matrix in power bi that needs to calculate each event as a percentage of the opening event this is being done by the measures
OpeningEventIDs = CALCULATE(SUM(Sheet1[UserCount]), Sheet1[StepName] = "Opening Event")
%OfOpeningEvent = DIVIDE(SUM(Sheet1[UserCount]), [OpeningEventIDs])
The values need to also be dynamic to the slicer "Colour name" so to recalculate the "Opening Event" each time
I am then trying to reorder the columns so that Opening Event is first, they have been assigned a number each and i am doing this by the "Sort by column" feature, this then breaks the table, i have included two images the first has the correct values but wrong column order, the second is after sorting by column, the correct outcome should be the same values but with opening event as the first column
Correct Values, Wrong Order
Wrong Values, Correct Order
data
Share Improve this question asked Nov 22, 2024 at 0:33 KRGKRG 11 Answer
Reset to default 0you can create a new table which includes step name and sort column
then create the relationship between your data table and this new table
then sort the step name column by sort column
in the matrix visual, drag the step name from the new table to the column field, then you will get the correct order.
本文标签: powerbiOrdering columns In a Power BI matrix by column not in matrixStack Overflow
版权声明:本文标题:powerbi - Ordering columns In a Power BI matrix by column not in matrix - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736306355a1932926.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论