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 September 15. Request your voucher.
I have a Excel data sheet for power bi Report preparation. in my datasheet have two column Product and Qty like below screen shot.
Now i have QTY changed in to COUNT(DISTINCT). now table looks like the below
Now i want to get the count of the QTY from Distinct table . i am using three conditions below
>= 4 - i want to get count of which are the values are Greater than equal to 4
= 12 - i want to get count of which are the values equal to 12.
Looking for support. Thanks in advance .
@Anonymous , You need a new measure like
Sumx(filter(Table, Table[Product] , "_qty", sum(Table[Qty]) ),switch(true(), [_qty] =12, 12, [_qty] >=4,4))
User | Count |
---|---|
15 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
24 | |
21 | |
12 | |
10 | |
7 |