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
I have 70 enterprises, and need to sume the percentage difference of a genre separately.
I mean:
Enp1-> 22women/50employees
Ent 2 -> 55/22
Ent 3-> 21./33
So, I want to sume (22/50 + 55/22 * 21/33)/3
Solved! Go to Solution.
Hi @Anonymous ,
To update the formula as below.
Measure 2 = VAR _result = SUMX ( VALUES ( Table1[Ent] ), [Measure] ) VAR _count = CALCULATE ( DISTINCTCOUNT ( Table1[Ent] ), ALL ( Table1 ) ) RETURN IF ( ISINSCOPE ( Table1[Ent] ), _result, _result / _count )
Please find the pbix as attached.
Regards,
Frank
Hi @Anonymous,
We can create two measures as below. If it doesnt't meet your requirement, kindly share your sample data to me.Please upload your files to One Drive and share the link here.
Measure = DIVIDE ( CALCULATE ( COUNTROWS ( Table1 ), FILTER ( Table1, Table1[gender] = "male" ) ), CALCULATE ( COUNTROWS ( Table1 ), FILTER ( Table1, Table1[gender] = "female" ) ) )
Measure 2 = SUMX ( VALUES ( Table1[Ent] ), [Measure] )
Also please find the pbix as attached.
Regards,
Frank
What I need is "cantidad de mujeres" (quantity of woman) to be "Mujer/Quantity of people in that enterprise". But not as a table, because I need that "total" be equal to (0% + 0% + 50% + 46,15% + 37,74%)/5. This equation is equal to 26,78%, not 23,46%. This 23,46% is the result of "83/Total of the people)
Hi @Anonymous ,
To update the formula as below.
Measure 2 = VAR _result = SUMX ( VALUES ( Table1[Ent] ), [Measure] ) VAR _count = CALCULATE ( DISTINCTCOUNT ( Table1[Ent] ), ALL ( Table1 ) ) RETURN IF ( ISINSCOPE ( Table1[Ent] ), _result, _result / _count )
Please find the pbix as attached.
Regards,
Frank
Really REALLY thanks man..!!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
89 | |
84 | |
70 | |
51 |
User | Count |
---|---|
206 | |
146 | |
97 | |
79 | |
69 |