Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi,
I am unable to find the exact solution for my problem. Appreciate anyone help on the formula!!
This is the formula i have to calculate gender % under different countries.
Solved! Go to Solution.
Hi @PhoebeDang ,
I see that @lbendlin asked you for a relevant sample.
Please refer to my steps.
Please try to modify the formula.
Gender Percentage =
VAR SelectedGender = SELECTEDVALUE('Monthly Metrics'[Gender], "All")
RETURN
IF(
SelectedGender = "No",
BLANK(),
DIVIDE(
CALCULATE(COUNT('Monthly Metrics'[Gender]), 'Monthly Metrics'[Gender] = "Yes"),
CALCULATE(COUNT('Monthly Metrics'[Gender]), ALLSELECTED('Monthly Metrics'))
)
)
How to Get Your Question Answered Quickly - Microsoft Fabric Community
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ Rongtie
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you. Actually i figured out the DAX:
Hi @PhoebeDang ,
I see that @lbendlin asked you for a relevant sample.
Please refer to my steps.
Please try to modify the formula.
Gender Percentage =
VAR SelectedGender = SELECTEDVALUE('Monthly Metrics'[Gender], "All")
RETURN
IF(
SelectedGender = "No",
BLANK(),
DIVIDE(
CALCULATE(COUNT('Monthly Metrics'[Gender]), 'Monthly Metrics'[Gender] = "Yes"),
CALCULATE(COUNT('Monthly Metrics'[Gender]), ALLSELECTED('Monthly Metrics'))
)
)
How to Get Your Question Answered Quickly - Microsoft Fabric Community
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ Rongtie
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you. Actually i figured out the DAX:
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information or anything not related to the issue or question.
If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...
User | Count |
---|---|
93 | |
83 | |
77 | |
72 | |
66 |
User | Count |
---|---|
115 | |
103 | |
93 | |
64 | |
61 |