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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Anonymous
Not applicable

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.