Forum Discussion

Alaqillina's avatar
Alaqillina
New Member
1 year ago
Solved

How to create new percentage measure?

 I create it this measure

DIVIDE ([Headcount], CALCULATE([Headcount], ALLSELECTED( 'Basic Information'))) so based on this function I want to show the female percentage in the card

 

  • Alaqillina Hi! you can use:

    Female Percentage =
    DIVIDE(
    CALCULATE([Headcount], 'Basic Information'[Gender Desc] = "Female"),
    CALCULATE([Headcount], ALLSELECTED('Basic Information'))
    )

     

    If it's ok, please accept the answer as solution.

     

    BBF

6 Replies

  • BeaBF's avatar
    BeaBF
    Icon for Super User rankSuper User

    Alaqillina Hi! you can use:

    Female Percentage =
    DIVIDE(
    CALCULATE([Headcount], 'Basic Information'[Gender Desc] = "Female"),
    CALCULATE([Headcount], ALLSELECTED('Basic Information'))
    )

     

    If it's ok, please accept the answer as solution.

     

    BBF

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Alaqillina ,
    Thank you BeaBF for the accurate response.

    As BeaBF suggested, the provided DAX measure is effective and may resolve the issue. If this solution works for you, please consider marking it as "Accept as Solution" to help others find it easily.If you still facing issue, feel free to reach out.

    Thank you for being a valued member of the Microsoft Fabric Community Forum!



    Regards,
    Pallavi.

      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi Alaqillina ,

        I'm glad to hear that your query was resolved! If our response addressed your query,please consider 

        marking it as Accept as Solution and give us Kudos if you found it helpful.

        Thank you for your cooperation. Have a great day.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Alaqillina ,
    Glad that the issue has been resolved, please mark the helpful reply as a "Accept as solution" .It will be helpful for other members of the community who have similar problems as yours to solve it faster.

    Thank you for your cooperation. Have a great day.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Alaqillina ,
    If the issue has been resolved, please mark the helpful reply as a solution to indicate that the question has been answered and to assist others in the community.

    Thank you for your cooperation. Have a great day.