Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
aboen
Regular Visitor

Customized subtotals in formatted profit and loss power BI matrix not showing up

Hi,

 

Is anyone able to help with an issue I'm having?

 

I've created specific subtotals but they aren't showing up in my matrix table

 

aboen_2-1654838842365.png

 

 

This is the formula for the 'Actual P&L' measure and I've checked in a separate table that the totals measures are calculating correctly so I assume it may be something to do with a relationship? I can't figure out how to make both the categories and subtotals to show in this profit and loss.

 

aboen_1-1654838742515.png

 

Thank you

Astri

 

2 REPLIES 2
v-yangliu-msft
Community Support
Community Support

Hi  @aboen ,

After research, it is found that the strings in the measure are inconsistent with the strings in the matrix, and the strings in the measure lack spaces, which will lead to blank values.

vyangliumsft_0-1655090505295.png

You can add a space to the string in measure and make it consistent with the string in the matrix

Measure =
var CurrentItem=SELECTEDVALUE('FormatPL'[Lookup.AccountName])
return
SWITCH(
    TRUE(),
    MAX('FormatPL'[Lookup.AccountName])="TotalServiceIncome",111,
    MAX('FormatPL'[Lookup.AccountName])="Total Exoenses",222,
    MAX('FormatPL'[Amount]))

Result:

vyangliumsft_1-1655090505299.png

 

Best Regards,

Liu Yang

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

Hi Liu,

 

Thank you for your reply and time to look into this!

 

I don't think this is the issue as my measure/formula is looking at this query 'LookupAccountName' which does not have spaces therefore adding those spaces don't make a difference

 

aboen_0-1655111852842.png

 

If you have any other suggestions that would be great

 

Thank you

Astri

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.