Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
HI All
One week ago I post a question related matrix table return wrong GP%. See below post.
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
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.
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 :-
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 63 | |
| 53 | |
| 42 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 123 | |
| 105 | |
| 45 | |
| 32 | |
| 24 |