cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Regular Visitor

## Calculate Measure is not showing values when Page Filter is applied to matrix

I have a series of measures which attempt to sum various accounts in an Income Statement into sub-totals. So there is a measure for Total Income, one for Total Cogs, one for total overeheads etc. I then use a SWITCH TRUE to pull those measures into the columns on my Income Statement. measure which sums my sales accounts.

All is working great until I apply a company filter to the PowerBI visual. The Calculate measures for the subtotals disappear when I try to filter for one company and comes back when there is no company filter on. Anyone got any ideas? Whent he company filter is applied i can still see the values from the ME_P&L SUBTOTALS below but the values from the ME_TOTAL INCOME disappear.

The Calculate measure for Total Sales in the income statement is...

ME_TOTAL INCOME = CALCULATE([ME_Amount], 'P27 TOP generalLedgerAccounts'[accountNumber] > 39999 && 'P27 TOP generalLedgerAccounts'[accountNumber] < 50000)

The SWITCH TRUE measure to give the income statment is....
ME_P&L Subtotals =
VAR CurrentItem = SELECTEDVALUE('P27 TOP incomeStatements'[display])
RETURN
SWITCH(TRUE(),
CurrentItem = "Total Income",CALCULATE('Measures (2)'[ME_TOTAL INCOME],ALL('P27 TOP incomeStatements')),
CurrentItem = "Total Cost of Goods Sold",CALCULATE('Measures (2)'[ME_COGS],ALL('P27 TOP incomeStatements')),
CurrentItem = "Gross Profit",CALCULATE('Measures (2)'[ME_GROSSPROFIT],ALL('P27 TOP incomeStatements')),
CurrentItem = "Ebitda",CALCULATE('Measures (2)'[ME_EBITDA],ALL('P27 TOP incomeStatements')),
CurrentItem = "Operating Profit",CALCULATE('Measures (2)'[ME_OPERATINGPROFIT],ALL('P27 TOP incomeStatements')),
CALCULATE([ME_Amount],
FILTER('P27 TOP incomeStatements', 'P27 TOP incomeStatements'[display] = CurrentItem)))
0 REPLIES 0

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

#### Power BI Monthly Update - July 2024

Check out the July 2024 Power BI update to learn about new features.

#### Fabric Community Update - July 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors