Forum Discussion

Moulick's avatar
Moulick
Frequent Visitor
9 years ago
Solved

Row level security in Power BI services

Hello ,   What i want to report  is rank of schools on the basis of number of students.(Higher the count, top on rankings)   I have published my report to power BI services , report is being seen...
  • v-caliao-msft's avatar
    v-caliao-msft
    9 years ago

    Hi Moulick,

     

    Do you create a rank measure in your report? I have tested it on my sample data, if we create calculated column instead of measure, then you can get the expect rank.

    Test Data

     

    Create a summarize table
    Table = SUMMARIZE(Table2,Table2[SchoolName],"CountStudent",CALCULATE(COUNTA(Table2[StudentName]),ALLEXCEPT(Table2,Table2[SchoolName])))

    Create a rank column
    Rank = RANKX('Table','Table'[CountStudent])

    Create a role

    Then test this role, I can get expected result.

     

    Regards,

    Charlie Liao