Forum Discussion

MichaelSievers's avatar
MichaelSievers
Frequent Visitor
4 years ago
Solved

Top N in Matrix Visual shows different results if I structure them in two different ways

Hi, I have a problem. I like to show the To 3 Open AR Overdue Positions within a matrix visual. I have the two Filters Customers (Kunde) and Fälligkeiten (Overdues)  

If I cluster them in the matrix in a way like the first chart, I will get the top 3 and the right information concerning the overdues. 

If I cluster the overdues as colums, my formula will give the 3 Top overdues in each category (A nicht fällig etc.) 

But that is not what I want. I want that my formula only gives my the top 3 Overdues and then shows their category. So it would be the top three overdues of the customers regardless of the sub category Fälligkeiten.  

My formula is this one
Offene Posten calculates the Overdues 
 
Top N OP_II = calculate ([Offene Posten],KEEPFILTERS(TOPN(3,ALLSELECTED('Pseudo
KNA1 Table'),[Offene Posten])))

Has anybody an idea what could help? 

Best Regards Mike

  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi MichaelSievers ,

     

    Could you tell me if my post helps you a little? If it is, kindly Accept it as the solution to make the thread closed. More people will benefit from it.

     

    Best Regards,
    Eyelyn Qin

5 Replies

  • MichaelSievers , What is expected output, please share in table format

     

    also try


    Top N OP_II = calculate ([Offene Posten],TOPN(3,ALLSELECTED('Pseudo
    KNA1 Table'),[Offene Posten]), value('Pseudo
    KNA1 Table'))

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi MichaelSievers ,

     

    Not sure about your issue.

     

    I have built a data sample:

    Then simply used the following formula :

    Offene Posten = SUM('Table'[Value])
    Top N OP_II = calculate ([Offene Posten],KEEPFILTERS(TOPN(3,ALLSELECTED('Table'),[Offene Posten])))

    The final output in my side is shown below, seemed to work.

    Please provide me with more details about your table and your expected output or share me with your pbix file after removing sensitive data to help us clarify your scenario.

     

    Best Regards,
    Eyelyn Qin
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi MichaelSievers ,

     

    Could you tell me if my post helps you a little? If it is, kindly Accept it as the solution to make the thread closed. More people will benefit from it.

     

    Best Regards,
    Eyelyn Qin

  • PaulDBrown's avatar
    PaulDBrown
    Icon for Community Champion rankCommunity Champion

    Select the Overdue field in the filter pane, select TopN as the filter type, type in 3 and use the [Offene Posten] measure as the parameter in the filter