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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors
Top Kudoed Authors