Forum Discussion

Alex_Berlin's avatar
Alex_Berlin
Advocate I
8 years ago
Solved

Profit loss calculation report in Matrix Visual

Hi everybody, We are currently trying to migrate a profit loss calculation report (as multi-level contribution margin accounting) to Power BI. So far, we have succeeded in creating a tabular view in...
  • ImkeF's avatar
    ImkeF
    8 years ago

    Coming to think about it, there is actually a simpler solution:

     

    GuV = if([IsDetail],[Act],[RT])

    with

     

    IsDetail = ISFILTERED('Kostenart zu DB-Zeile'[Konto ++]) || ISFILTERED('Kostenart zu DB-Zeile'[DB Unterzeile ++]) || ISFILTERED('Kostenart zu DB-Zeile'[DB Zeile ++]) 

    The measure "IsDetail" checks if one of the levels/groups that are considered as details is filtered. No need to adjust any tables then :)