Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Do anyone know how to create a measure so that it is the sum of male including option 1, 2, 3, my expected outcome is 109+140+30=279?
Hi,
Do you want to have a Card as shown the sum of the Number for Male and 1,2,3 ?
If yes, you could use the below code to create the measure :
Hi,
I am not sure how your datamodel looks like, but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
I hope the below can provide some ideas on how to create a solution for your datamodel.
Value sum: =
SUM( Data[Value] )
Expected value sum: =
CALCULATE (
[Value sum:],
KEEPFILTERS ( Gender[Gender] = "Male" ),
KEEPFILTERS ( 'Group'[Group] IN { 1, 2, 3 } )
)
User | Count |
---|---|
77 | |
74 | |
42 | |
32 | |
28 |
User | Count |
---|---|
100 | |
93 | |
52 | |
50 | |
48 |