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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
kannanAhammed
Helper IV
Helper IV

How to calculate percentage?

Hello ,

 

I have the below table, Offers, Accepted and Rejected are count from a field 

Date InitiatedCandidate Name Accepted / DeclinedProject / OfficeDivisionLocationHiring SourceRecruiterAccepted / Declined DatePosition 
44200Rami BashirAcceptedCrown TowerHRQatarWebsiteTomy44206Senior Resident Engineer
44200Eswara AcceptedbridgeFinanceAbu DhabiLinkedInRalf44201Planning Engineer
44200OwhighoAcceptedbridgeITQatarGulf TalentMathew44200Safety Officer
44201 UdovicicAcceptedbridgeSalesDubaiEmployee ReferralGordon44230Senior Interior Designer

 

offers is count and others are messures created with dax function 

kannanAhammed_1-1634213200404.png

 

I would like to add a coulmn named conversion percentage to calculate the persentage of acceptance how do i do this?

4 REPLIES 4
v-yalanwu-msft
Community Support
Community Support

Hi, @kannanAhammed ;

Is your problem solved?? If so, Would you mind accept the helpful replies as solutions? Then we are able to close the thread. More people who have the same requirement will find the solution quickly and benefit here. Thank you.

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

v-yalanwu-msft
Community Support
Community Support

Hi, @kannanAhammed ;

Please try it.

percent =
VAR _offers =
    CALCULATE ( COUNTROWS ( 'Table' ), ALLEXCEPT ( 'Table', 'Table'[offers] ) )
RETURN
    DIVIDE ( [Accepeted], _offers + [Accepeted] + [Rejected] + [Other] )

If not, can you share more details and your  detailed logic and desired output ?

The most important parts are:
1. Sample data as text or screenshots.
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@kannanAhammed , Not very clear, but a measure like

 

Divide(count(Table[offers]), count(Table[offers]) +[Accepeted]+[Rejected]+[Other])

 

Assuming last three are measures

 

or

Can you share sample data and sample output in table format?

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Hello Amit, 

 

for some reason I am getting the 1 as the output from the mesure created as you advised.

 

I have updated the table as advised, Please see the original post.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.