Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Summary in Top N

Hello i have 2 tables a issues pleas i need your help  :

cashflow :

- id 

- commitment 

- NAV  (But NAV is measure)

 

investee : 

_id 

_legalname 

 

I want to get in matrix Top 5 of legalname according [NAV]  and display it in matrix like ;

 

Legalname| %Nav | %commitment 

 

---------------------------

This this measure that i have create 

 

TOPN(5,
SUMMARIZE(Investee,
Investee[LegalName],
"Test",SUMX(RELATEDTABLE(CashFlows),CashFlows[Commitment])
),[Test]
)

 

but it's don't work 

 

Thanks in advance 

 

I want to

  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi Anonymous ,

    First, using TOPN function will return a table not specific value, so it need to create a calculated table not measure...

    TOPN(5,
    SUMMARIZE(Investee,
    Investee[LegalName],
    "Test",SUMX(RELATEDTABLE(CashFlows),CashFlows[Commitment])
    ),[Test]
    )

    Do you want to get the TOPN legalnames? If yes, you can refer the following links to get it.

    How to Create Power BI TOP N Report (Variable TOP N Filter) 

    3 ways to get TOPN values in Power BI

    Filter top n records Power BI

    If the above one is not working for you, please provide some sample data(exclude sensitive data) with Text format and your expected result with special examples and screenshots. It is better if you can provide me a simplified pbix file. Thank you.

    Best Regards

2 Replies