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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
yudhamm
New Member

the result divide of two measure is not as expected

hai can i get help,
i want to make divide of two measure but the result not as expected,
First Measure :

STP EX EKIT = CALCULATE(
    COUNT(STP[CONTRACT_NO]),
    STP[CHANNEL] IN {"AGENCY","BANCASS"},
    STP[STP] = "STP",
    STP[YEAR ISSUED] = 2025)

And the result :

yudhamm_0-1739435225378.png


the secound Measure is :

SUBMISSION ALL = CALCULATE(
    COUNT(STP[CONTRACT_NO]),
    STP[CHANNEL] in {"AGENCY","BANCASS"},
    STP[YEAR SUBMISSION] = 2025)

And the result :

yudhamm_1-1739435314578.png

 

but when i want divide STP EX EKIT, SUBMISSION ALL(STP EX EKIT/SUBMISSION ALL), the result is not expected,
in january i want the result is 5615/13500 = 41,6%. but i get result

yudhamm_2-1739435602069.png

 

with this dax divide

STP EX EKIT ON ALL SUBMISSION = DIVIDE([STP EX EKIT],STP[SUBMISSION ALL]). i hope i can get solusion
1 ACCEPTED SOLUTION
sanalytics
Super User
Super User

Hello @yudhamm 
Can you change your code little bit. and see if it works or not..

STP EX EKIT = 
CALCULATE(
    COUNT(STP[CONTRACT_NO]),
    STP[CHANNEL] IN {"AGENCY", "BANCASS"},
    STP[STP] = "STP",
    STP[YEAR ISSUED] = 2025,
    VALUES(STP[MONTH ISSUED])
)
SUBMISSION ALL = 
CALCULATE(
    COUNT(STP[CONTRACT_NO]),
    STP[CHANNEL] IN {"AGENCY", "BANCASS"},
    STP[YEAR SUBMISSION] = 2025,
    VALUES(STP[MONTH SUBMISSION])
)

 

and use the Divide function for Percentage

DIVIDE(
    [STP EX EKIT],
    [SUBMISSION ALL],
    0
)

 let me know if it works or not.. if not, i reuqest you to provide your data model along with some dummy data.

 

Regards

sanalytics

 

View solution in original post

2 REPLIES 2
sanalytics
Super User
Super User

Hello @yudhamm 
Can you change your code little bit. and see if it works or not..

STP EX EKIT = 
CALCULATE(
    COUNT(STP[CONTRACT_NO]),
    STP[CHANNEL] IN {"AGENCY", "BANCASS"},
    STP[STP] = "STP",
    STP[YEAR ISSUED] = 2025,
    VALUES(STP[MONTH ISSUED])
)
SUBMISSION ALL = 
CALCULATE(
    COUNT(STP[CONTRACT_NO]),
    STP[CHANNEL] IN {"AGENCY", "BANCASS"},
    STP[YEAR SUBMISSION] = 2025,
    VALUES(STP[MONTH SUBMISSION])
)

 

and use the Divide function for Percentage

DIVIDE(
    [STP EX EKIT],
    [SUBMISSION ALL],
    0
)

 let me know if it works or not.. if not, i reuqest you to provide your data model along with some dummy data.

 

Regards

sanalytics

 

Thank you, for your solution

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

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.