Forum Discussion

natabird3's avatar
natabird3
Icon for Skilled Sharer rankSkilled Sharer
6 years ago
Solved

direct query - Rank measure

Dear all,

 

I was wondering if anyone found a way around rank measures when using direct query? I have read a lot online and seems its not currently supported. There are suggestions like enabling restiricted formulas in option menu, but on my power bi i do not see such option. Anyone has a working solution on this?

 

Please let me know, thanks in advance for the help, stay safe.

 

3 Replies

  • natabird3's avatar
    natabird3
    Icon for Skilled Sharer rankSkilled Sharer

    This one worked for me thanks 🙂 

    ToHellWithRankXDescMeasure2 =
    COUNTROWS(
    FILTER(
    SUMMARIZE(
    ALL('Table'),
    [Group],
    "Value",SUM('Table'[Value])
    ),
    [Value]>=SUM([Value])
    )
    )

     

    The date was probably going to be my next questions so i will try now that thanks for the detailed info and taking the time to collect all this great info. 

    • Greg_Deckler's avatar
      Greg_Deckler
      Icon for Community Champion rankCommunity Champion
      Sure thing, I kind of wrote that post as a joke, but it has actually turned out to be surprisingly handy! 🙂