The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I am using the measure below to get output as 0 & 1 and now from this output i need to calculate the sum of 0's & 1's.
from a measure we cant create a SUM right.
What is the alternative to get sum of 0 & 1 from the Below measure, Any suggestions please?
measure =
Hi
I am using the measure below to get output as 0 & 1 and now from this output i need to calculate the sum of 0's & 1's.
from a measure we cant create a SUM right.
What is the alternative to get sum of 0 & 1 from the Below measure, Any suggestions please?
measure =
@Anonymous This looks like a measure aggregation problem. See my blog article about that here: https://community.powerbi.com/t5/Community-Blog/Design-Pattern-Groups-and-Super-Groups/ba-p/138149
The pattern is:
MinScoreMeasure = MINX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])
MaxScoreMeasure = MAXX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])
AvgScoreMeasure = AVERAGEX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])
etc.
Hi Greg
Thanks for the quick response.
Here i need to do SUM of the 0's & 1's. Grouping is not required
any help please?
User | Count |
---|---|
10 | |
9 | |
6 | |
6 | |
5 |
User | Count |
---|---|
22 | |
14 | |
14 | |
9 | |
7 |