Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Calculated Column not working with measures

I need to create a pie chart that shows the Top 5 projects and then groups the rest under "others".   I understand how to write these as measures but I need a calculated column to use as the details ...
  • MFelix's avatar
    MFelix
    6 years ago

    Hi Anonymous ,

     

    Using the blog post below I was abble to achieve necessary value:

     

    https://www.proserveit.com/blog/ms-power-bi-topn-and-other

     

    Only change was that I created the Top5 and others on the query editor since it was giving me a circularity from dax.

     

    You can also make this even more dinamic if you place the Top N as a what if parameter.

     

    Check PBIX file attach.