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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.