Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

How can I export a Top N table to excel?

Hi awesome people!   Is there a way I can export my Top N table to excel as is? I want to export the Top 15 (or whichever value I choose on my slicer), but the exported data always show the whole ...
  • Jihwan_Kim's avatar
    Jihwan_Kim
    5 years ago

    Hi, Anonymous 

    Thank you for your feedback.

    I tried to create a QTY total measure, and put it into the TopN measure.

    Please check the below picture and the link down below.

    The newly created measures are Qty Total and Qty Total TopN V2.

     

     

    Qty Total TopN V2 =
    VAR topnselect =
    SELECTEDVALUE ( Parameter[Parameter] )
    RETURN
    CALCULATE (
    [Qty Total],
    KEEPFILTERS ( TOPN ( topnselect, ALL ( 'Table'[Product] ), [Qty Total], DESC ) )
    )
     

     

    Hi, My name is Jihwan Kim.

     

    If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

     

    Linkedin: linkedin.com/in/jihwankim1975/

    Twitter: twitter.com/Jihwan_JHKIM