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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Talal141218
Helper III
Helper III

Adjusting measure to with filter

Hello Community, 

I need your help to correct my measure or create a new one to suit the filter, that i will select it. 

B2C Geschäft von G.S % =
var B2C = CALCULATE([CM_SalesLine_SalesOrderLine_AmountSales_ExclAll_LCY], Fact_SalesLine[SalesOrderLineOrderTypeName]= "B2C Dropshipping" )+ CALCULATE([CM_SalesLine_SalesOrderLine_AmountSales_ExclAll_LCY],Fact_SalesLine[SalesOrderLineOrderTypeName] = "b2c Bulk")
var Gesamtorderamount = Fact_SalesLine[CM_SalesLine_SalesOrderLine_AmountSales_ExclAll_LCY]
return DIVIDE(B2C, Gesamtorderamount).
Filter as you see in the screen shot:
Talal141218_0-1732699407084.png

When i want to select one of the filter above, will give me unrealistic results or ratio. 

Thanks in Advance

3 REPLIES 3
bhanu_gautam
Super User
Super User

@Talal141218 , Try using 

B2C Geschäft von G.S % =
VAR B2C =
CALCULATE(
[CM_SalesLine_SalesOrderLine_AmountSales_ExclAll_LCY],
Fact_SalesLine[SalesOrderLineOrderTypeName] IN {"B2C Dropshipping", "b2c Bulk"}
)
VAR Gesamtorderamount =
CALCULATE(
[CM_SalesLine_SalesOrderLine_AmountSales_ExclAll_LCY],
ALL(Fact_SalesLine[SalesOrderLineOrderTypeName])
)
RETURN
DIVIDE(B2C, Gesamtorderamount)

 




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






The same result. Thx for trying. 

Anonymous
Not applicable

Hi @Talal141218 ,

 

Try to add allselected() when there is a table calculation and if you still have problems, please share the sample data as well as the expected results.

 

Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

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

Helpful resources

Announcements
November Fabric Update Carousel

Fabric Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Users online (27)