Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I have data similar to the above and would like to make a graph.
I can drag and drop "Type" directly to value in Power BI to get the total number of people who have Type A or Type B selected,
How can I display the total number of people who have selected both type? (TYPE A >1 AND TYPE B >1)
Solved! Go to Solution.
you can try this
A&B =
VAR tbl=SUMMARIZE('Table','Table'[Name],"count",DISTINCTCOUNT('Table'[Type]))
return COUNTROWS(FILTER(tbl,[count]>1))
pls see the attachment below
Proud to be a Super User!
you can try this
A&B =
VAR tbl=SUMMARIZE('Table','Table'[Name],"count",DISTINCTCOUNT('Table'[Type]))
return COUNTROWS(FILTER(tbl,[count]>1))
pls see the attachment below
Proud to be a Super User!
Thank you so much.
you are welcome
Proud to be a Super User!
Hi,
Need clarity on how you got 1 for the 3 condition.
You can create one disconnected table with above 3 rows and use the below measure but need to update the "Your Condition" section.
Count =
SWITCH (
TRUE (),
MIN ( 'Type Table'[Types] ) = "Type A>=1",
CALCULATE (
COUNTROWS ( 'Type' ),
'Type'[Type] = "Type A"
&& 'Type'[Name] <> "User B"
),
MIN ( 'Type Table'[Types] ) = "Type B>=1",
CALCULATE (
COUNTROWS ( 'Type' ),
'Type'[Type] = "Type B"
&& 'Type'[Name] <> "User A"
),
MIN ( 'Type Table'[Types] ) = "Type A>=1 and Type B>=1", "Your Condition"
)
Thanks
Hari
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
96 | |
93 | |
82 | |
70 | |
64 |
User | Count |
---|---|
115 | |
105 | |
95 | |
79 | |
72 |