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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
admin11
Memorable Member
Memorable Member

Why PBI Matrix table return wrong GP% ?

 

HI All

One week ago I post a question related matrix table return wrong GP%.  See below post.

 

https://community.powerbi.com/t5/Desktop/Why-my-matrix-table-return-monthly-wrong-amount-and-yet-Tot...

 

Remark :- 

I have provide sample PBI file 

2. I also have share my expected result using excel table.

 

hope some one can advise me

 

Paul

2 REPLIES 2
Anonymous
Not applicable

Hi @admin11 ,

 

I think you can try to get correct subtotal by SUMX() based on [_YTD_GPM] measure.

Measure 7 = SUMX(VALUES('DATE'[YrMth Sort]),[_YTD_GPM])
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",[Measure 7],
                            "7_NPM",[_YTD_NPM]
                            )

Result is as below.

RicoZhou_0-1659000826056.png

 

Best Regards,
Rico Zhou

 

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

@Anonymous 

 

Thank you very much for your response.

 

i Have found out the issue :-

 

_YTD_GPM_ = DIVIDE([AMOUNT_REV_N]+[AMOUNT_COGS],[AMOUNT_REV_N])
 
But i go and use :-
 
_YTD_GPM = DIVIDE([_YTD_REV_N]+[_YTD_COGS]+[_YTD_OTH_IN],[_YTD_REV_N])
 
So it cause the problem.
 
As SUMX usually solve Overtotal problem.
 
Any way thank you very much.
 
Paul

 

 

 

 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.