March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Dear Team;
I would like to request your support.
How can i calculate the percentage? (Dax). In case I have the tables (1srt one OR second one) below :
Thank you
Solved! Go to Solution.
@dofrancis3 , Update measure as
Proud to be a Super User! |
|
Assuming you want to calculate the percentage of cases based on Gender in the first table:
Create measures:
Total Cases = SUM('YourTableName'[Case])
Total Cases Female =
CALCULATE (
[Total Cases],
'YourTableName'[Gender] = "F"
)
Total Cases Male =
CALCULATE (
[Total Cases],
'YourTableName'[Gender] = "M"
)
Percentage Female =
DIVIDE (
[Total Cases Female],
[Total Cases],
0
)
Percentage Male =
DIVIDE (
[Total Cases Male],
[Total Cases],
0
)
💌 If this helped, a Kudos 👍 or Solution mark would be great! 🎉
Cheers,
Kedar
Connect on LinkedIn
Dear @Kedar_Pande Thank you for your replay but i would like to calculate only the percentage of total cases
@dofrancis3 , Try creating a measure like
Proud to be a Super User! |
|
Dear @bhanu_gautam Thank you but note that this is a Mesure it's not a column.
So, please how to calculate a percentage in case Total is a mesure
@dofrancis3 , Update measure as
Proud to be a Super User! |
|
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
21 | |
17 | |
13 | |
6 | |
5 |
User | Count |
---|---|
29 | |
28 | |
20 | |
13 | |
10 |