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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
admin11
Memorable Member
Memorable Member

Why my matrix table return monthly wrong % amount and yet Total column return correct % amount

Hi All

I have a P&L summary table below :-

 

admin11_0-1658477313939.png

I notice that the Total column return correct value , but the monthly return wrong value . 

 

Remark :-

1. If both return wrong value , it is cause by expression error . 

 

Hope some one can share with me how to trouble shoot this problem ?

 

Value i insert below expression :-

PnL CY = SWITCH(SELECTEDVALUE('_PnL_Var'[PnL_Var]),
                            "1_REV", [_YTD_REV_N],
                            "2_COGS",[_YTD_COGS1],
                            "3_OTH", [_YTD_OTH_IN],
                            "4_EXP", [_YTD_EXP2],
                            "5_NET_P",[_YTD_NP_],
                            "6_GPM",[_YTD_GPM],
                            "7_NPM",[_YTD_NPM]
                            )
 
_YTD_GPM = DIVIDE([_YTD_REV_N]+[_YTD_COGS]+[_YTD_OTH_IN],[_YTD_REV_N])
 
_YTD_REV_N =
CALCULATE(
    SUM(GL[AMT])*-1,
    FILTER(
        GL,
        GL[1_REV]="REV"
    )
)
 

Paul

4 REPLIES 4
lbendlin
Super User
Super User

Please provide sanitized sample data that fully covers your issue. If you paste the data into a table in your post or use one of the file services it will be easier to assist you. I cannot use screenshots of your source data.

Please show the expected outcome based on the sample data you provided. Screenshots of the expected outcome are ok.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

@lbendlin 

You are right , not easy to solve the issue by looking at the expression.

 

Hope that you can help me find out where go wrong ?

 

Paul

I don't see anything inherently wrong with the data.  ( I see a lot of nested measures which is always a red flag).  Why would you think that the GPM and NPM values are wrong?

@lbendlin 

Thank you for fast reply. in order to show you the error . i create a excel file.

admin11_0-1658704715431.png

you can download below link is excel file :-

 

https://www.dropbox.com/s/ntejaz7u7ax032z/PBI%20vs%20MANUAL.xlsx?dl=0

 

Paul

 

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.